forked from thunderdog1138/star_wars
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
|
return
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
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..
|
minetest.log("action", (sender:get_player_name() or "").." wrote \""..fields.text..
|
||||||
"\" to sign at "..minetest.pos_to_string(pos))
|
"\" to sign at "..minetest.pos_to_string(pos))
|
||||||
meta:set_string("text", fields.text)
|
meta:set_string("text", fields.text)
|
||||||
|
|
Loading…
Reference in New Issue