Fix the possibility to put fire in a protected area

This commit is contained in:
Andrii 2024-06-14 20:45:55 +03:00
parent 511619253f
commit 8f49f9b73c

View file

@ -100,7 +100,8 @@ minetest.register_tool("fire:flint_and_steel", {
if not nodedef then
return
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")
return
end