From d12356794ff6b7aeeb20bc82a6072282669c5d3c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 21 Mar 2019 12:28:48 +0100 Subject: [PATCH] Close editing formspec if sign is destroyed --- mods/ITEMS/mcl_signs/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/ITEMS/mcl_signs/init.lua b/mods/ITEMS/mcl_signs/init.lua index 793eed60b..6cbec59e9 100644 --- a/mods/ITEMS/mcl_signs/init.lua +++ b/mods/ITEMS/mcl_signs/init.lua @@ -187,6 +187,10 @@ local destruct_sign = function(pos) v:remove() end end + local players = minetest.get_connected_players() + for p=1, #players do + minetest.close_formspec(players[p]:get_player_name(), "mcl_signs:set_text_"..pos.x.."_"..pos.y.."_"..pos.z) + end end local update_sign = function(pos, fields, sender)