Skip to content
Snippets Groups Projects
Commit d4c24a30 authored by Zefram's avatar Zefram Committed by sfan5
Browse files

Retain sign text when editing is aborted by <esc>

parent c8845e8d
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment