From c65590267616ffee95d90fe9118054de8a6bb76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Mart=C3=ADnez?= Date: Wed, 22 Feb 2017 20:48:24 -0300 Subject: [PATCH] I have no idea what I'm doing. --- init.lua | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/init.lua b/init.lua index b89cff7..0a0fd55 100644 --- a/init.lua +++ b/init.lua @@ -498,21 +498,12 @@ signs_lib.update_sign = function(pos, fields, owner) local text = meta:get_string("text") if text == nil then return end local objects = minetest.get_objects_inside_radius(pos, 0.5) - local found for _, v in ipairs(objects) do local e = v:get_luaentity() if e and e.name == "signs:text" then - if found then - v:remove() - else - set_obj_text(v, text, new, pos) - found = true - end + v:remove() end end - if found then - return - end -- if there is no entity local sign_info