Add support for Zeg9's protector mod

This commit is contained in:
Diego Martínez 2013-05-20 15:15:41 -03:00
parent 618aa5f167
commit 493abe720d
1 changed files with 4 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