summaryrefslogtreecommitdiff
path: root/technic_chests
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-04-24 17:42:35 +0100
committerShadowNinja <shadowninja@minetest.net>2014-04-24 16:35:41 -0400
commit593972b1561016b9fd700998b1ef0d48abd25eda (patch)
tree367d462071d17ccf1bfa58b87d7dfc7680188797 /technic_chests
parent628a18977bcf423e900dfd8db137ece898b4a203 (diff)
Save chest label when exiting formspec
When using the form to edit a chest label, apply the edited label whenever the form is submitted with the text field included, rather than only if the form's specific "finished editing" button is used. This supports the natural use of <ret> to indicate that text editing is complete, which works with other text editing forms such as that for signs.
Diffstat (limited to 'technic_chests')
-rw-r--r--technic_chests/register.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/technic_chests/register.lua b/technic_chests/register.lua
index 765a9a5..204ca3c 100644
--- a/technic_chests/register.lua
+++ b/technic_chests/register.lua
@@ -69,7 +69,7 @@ local function get_receive_fields(name, data)
if fields.edit_infotext then
page = "edit_infotext"
end
- if fields.save_infotext then
+ if fields.infotext_box then
meta:set_string("infotext", fields.infotext_box)
end
local formspec = data.formspec