From d4c24a30e99ce1c5b1c3047ea67beef43b9b9690 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 20 Jul 2014 17:22:54 +0100 Subject: [PATCH] Retain sign text when editing is aborted by --- mods/default/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 93d6981c..354096e0 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -723,7 +723,7 @@ minetest.register_node("default:sign_wall", { return end local meta = minetest.get_meta(pos) - fields.text = fields.text or "" + if not fields.text then return end minetest.log("action", (sender:get_player_name() or "").." wrote \""..fields.text.. "\" to sign at "..minetest.pos_to_string(pos)) meta:set_string("text", fields.text) -- 2.25.1