From 88825e6e16ab87cc9f248ee298d8a8421c5ffb55 Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 28 Sep 2016 07:40:14 -0500 Subject: Fix sign text being removed --- sign.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sign.lua') diff --git a/sign.lua b/sign.lua index 31e08a7..74b72d3 100644 --- a/sign.lua +++ b/sign.lua @@ -5,7 +5,7 @@ local signdef = table.copy(minetest.registered_nodes["default:sign_wall"]) signdef.description = "Unprotected Sign" signdef.on_receive_fields = function(pos, formname, fields, sender) local meta = minetest.get_meta(pos) - fields.text = fields.text or "" + if not fields.text then return end print((sender:get_player_name() or "").." wrote \""..fields.text.. "\" to sign at "..minetest.pos_to_string(pos)) meta:set_string("text", fields.text) -- cgit v1.2.3