1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00

fix missing ownership check on editing yard signs

This commit is contained in:
Vanessa Ezekowitz 2013-05-20 21:55:40 -04:00
parent 987f070069
commit 049b358c31

View File

@ -233,6 +233,7 @@ minetest.register_node(":signs:sign_yard", {
minetest.pos_to_string(pos) minetest.pos_to_string(pos)
)) ))
end end
if homedecor_node_is_owned(pos, sender) then return end
homedecor_update_sign(pos, fields) homedecor_update_sign(pos, fields)
end, end,
on_punch = function(pos, node, puncher) on_punch = function(pos, node, puncher)
@ -441,7 +442,7 @@ function homedecor_register_fence_with_sign(fencename, fencewithsignname)
minetest.pos_to_string(pos) minetest.pos_to_string(pos)
)) ))
end end
if homedecor_node_is_owned(pos, sender) then return end if homedecor_node_is_owned(pos, sender) then return end
homedecor_update_sign(pos, fields) homedecor_update_sign(pos, fields)
end end
def_sign.on_punch = function(pos, node, puncher, ...) def_sign.on_punch = function(pos, node, puncher, ...)