From 049b358c315e22d157d0146be9a91c01e0e3f8c9 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 20 May 2013 21:55:40 -0400 Subject: [PATCH] fix missing ownership check on editing yard signs --- signs_lib.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/signs_lib.lua b/signs_lib.lua index 555ae3b..17590a4 100644 --- a/signs_lib.lua +++ b/signs_lib.lua @@ -233,6 +233,7 @@ minetest.register_node(":signs:sign_yard", { minetest.pos_to_string(pos) )) end + if homedecor_node_is_owned(pos, sender) then return end homedecor_update_sign(pos, fields) end, on_punch = function(pos, node, puncher) @@ -441,7 +442,7 @@ function homedecor_register_fence_with_sign(fencename, fencewithsignname) minetest.pos_to_string(pos) )) 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) end def_sign.on_punch = function(pos, node, puncher, ...)