diff --git a/init.lua b/init.lua index 685eff8..4605cb3 100644 --- a/init.lua +++ b/init.lua @@ -49,6 +49,10 @@ function homedecor_node_is_owned(pos, placer) if not isprotect(5, pos, placer) then ownername = S("someone") end + elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod + if not protector.can_dig(5, pos, placer) then + ownername = S("someone") + end end if ownername ~= false then diff --git a/signs_lib.lua b/signs_lib.lua index 2ebeead..96296a6 100644 --- a/signs_lib.lua +++ b/signs_lib.lua @@ -441,6 +441,7 @@ function homedecor_register_fence_with_sign(fencename, fencewithsignname) minetest.pos_to_string(pos) )) end + if not homedecor_node_is_owned(pos, sender) then return end homedecor_update_sign(pos, fields) end def_sign.on_punch = function(pos, node, puncher, ...)