changed how signs work when pressing esc @asl97

This commit is contained in:
kaadmy 2015-10-02 09:22:49 -07:00
parent 29e9447731
commit 4e1d67f919
1 changed files with 1 additions and 1 deletions

View File

@ -1028,8 +1028,8 @@ minetest.register_node(
end,
on_receive_fields = function(pos, formname, fields, sender)
--print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
if fields.text == nil then return end
local meta = minetest.get_meta(pos)
fields.text = fields.text or meta:get_string("text")
minetest.log("action", (sender:get_player_name() or "")..
" wrote \""..fields.text.."\" to sign at "..
minetest.pos_to_string(pos))