From 593972b1561016b9fd700998b1ef0d48abd25eda Mon Sep 17 00:00:00 2001 From: Zefram Date: Thu, 24 Apr 2014 17:42:35 +0100 Subject: [PATCH] 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 to indicate that text editing is complete, which works with other text editing forms such as that for signs. --- technic_chests/register.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2