forked from nalc/nalc_game
Retain sign text when editing is aborted by <esc>
This commit is contained in:
parent
c8845e8d44
commit
d4c24a30e9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user