Skip to content

Commit

Permalink
Fix formspec does not update on text changes (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 authored Dec 10, 2023
1 parent afe8f51 commit 27f582b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions signs_api/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 27f582b

Please sign in to comment.