Merge branch 'master' of github.com:VanessaE/homedecor

This commit is contained in:
Vanessa Ezekowitz 2013-05-20 21:11:15 -04:00
commit 0ae531e054
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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, ...)