diff --git a/mods/default/init.lua b/mods/default/init.lua index ef29f1c..33aa7d1 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -624,11 +624,12 @@ minetest.register_node("default:sign_wall", { end, on_receive_fields = function(pos, formname, fields, sender) --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields)) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", "field[text;;${text}]") if minetest.is_protected(pos, sender:get_player_name()) then minetest.record_protection_violation(pos, sender:get_player_name()) return end - local meta = minetest.get_meta(pos) 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))