mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
Add support for Zeg9's protector mod
This commit is contained in:
parent
618aa5f167
commit
493abe720d
4
init.lua
4
init.lua
@ -49,6 +49,10 @@ function homedecor_node_is_owned(pos, placer)
|
|||||||
if not isprotect(5, pos, placer) then
|
if not isprotect(5, pos, placer) then
|
||||||
ownername = S("someone")
|
ownername = S("someone")
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
if ownername ~= false then
|
if ownername ~= false then
|
||||||
|
Loading…
Reference in New Issue
Block a user