add settings, define table for namespace

This commit is contained in:
Gundul 2023-11-15 12:47:40 +01:00
parent 64e672a1c7
commit c2bab6fd07
3 changed files with 23 additions and 7 deletions

View file

@ -641,7 +641,8 @@ function airutils.on_punch(self, puncher, ttime, toolcaps, dir, damage)
if (puncher:is_player()) then
name = puncher:get_player_name()
ppos = puncher:get_pos()
if (minetest.is_protected(ppos, name)) then
if (minetest.is_protected(ppos, name) and
airutils.protect_in_areas) then
return
end
end