From 90d005dcd65769d75cfac165d0b89de5b8a94fab Mon Sep 17 00:00:00 2001 From: Dirk Sohler Date: Sat, 8 May 2021 20:53:37 +0200 Subject: [PATCH] make visibility formspec update after change fixes https://gitlab.com/4w/mtimer/-/issues/17 --- system/on_receive_fields.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/system/on_receive_fields.lua b/system/on_receive_fields.lua index 1374805..c7ccf85 100644 --- a/system/on_receive_fields.lua +++ b/system/on_receive_fields.lua @@ -39,6 +39,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.set_visible then meta:set_string(attr.key, 'true') end if fields.set_invisible then meta:set_string(attr.key, 'false') end if fields.default then meta:set_string(attr.key, attr.default) end + if not fields.quit then d.set_visibility(name) end end