forked from nalc/homedecor_modpack
Merge branch 'master' of github.com:VanessaE/homedecor
This commit is contained in:
commit
0ae531e054
4
init.lua
4
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
|
||||
|
|
|
@ -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, ...)
|
||||
|
|
Loading…
Reference in New Issue
Block a user