mirror of
https://github.com/APercy/airutils.git
synced 2025-07-13 09:51:55 -04:00
add settings, define table for namespace
This commit is contained in:
parent
64e672a1c7
commit
c2bab6fd07
3 changed files with 23 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue