Skip to content

Commit

Permalink
Fix the possibility to put fire in a protected area
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyndev committed Jun 14, 2024
1 parent 5116192 commit 8f49f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/fire/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f49f9b

Please sign in to comment.