mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-04-30 13:11:41 -04:00
Fix the possibility to put fire in a protected area
This commit is contained in:
parent
511619253f
commit
8f49f9b73c
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,8 @@ minetest.register_tool("fire:flint_and_steel", {
|
||||||
if not nodedef then
|
if not nodedef then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if minetest.is_protected(pointed_thing.under, player_name) then
|
if minetest.is_protected(pointed_thing.under, player_name)
|
||||||
|
or minetest.is_protected(pointed_thing.above, player_name) then
|
||||||
minetest.chat_send_player(player_name, "This area is protected")
|
minetest.chat_send_player(player_name, "This area is protected")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue