diff options
author | Brandon <brandon@bremaweb.com> | 2016-09-28 07:40:14 -0500 |
---|---|---|
committer | Brandon <brandon@bremaweb.com> | 2016-09-28 07:40:14 -0500 |
commit | 88825e6e16ab87cc9f248ee298d8a8421c5ffb55 (patch) | |
tree | fb53e0a6e6b329e513d21a5f93134b74d76fc673 /sign.lua | |
parent | 971cb158faf89e26c7ce4ef4dc0a6938c5261e92 (diff) |
Fix sign text being removedHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'sign.lua')
-rw-r--r-- | sign.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |