make visibility formspec update after change

fixes https://gitlab.com/4w/mtimer/-/issues/17
This commit is contained in:
Dirk Sohler 2021-05-08 20:53:37 +02:00
parent 062c01e535
commit 90d005dcd6
No known key found for this signature in database
GPG Key ID: B9751241BD7D4E1A

@ -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