1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-10-15 08:35:35 +02:00

Fix formspec does not update on text changes (#10)

This commit is contained in:
Niklp
2023-12-10 21:42:38 +01:00
committed by GitHub
parent afe8f517d7
commit 27f582b041

View File

@@ -78,9 +78,11 @@ function signs_api.on_receive_fields(pos, formname, fields, player)
if not minetest.is_protected(pos, player:get_player_name()) then
if fields and (fields.ok or fields.key_enter) then
signs_api.set_display_text(pos, fields.display_text)
signs_api.set_formspec(pos)
end
if fields and (fields.font) then
signs_api.set_display_text(pos, fields.display_text)
signs_api.set_formspec(pos)
font_api.show_font_list(player, pos)
end
end