Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Recreate GUI if necessary before updating it
Browse files Browse the repository at this point in the history
...because now Factorio doesn't persist them properly anymore? I don't
know wtf happened.

Closes #71 (and the duplicates #72, #73).
  • Loading branch information
narc0tiq committed Jun 22, 2017
1 parent 989bad4 commit 7daf141
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.203
0.4.204
2 changes: 2 additions & 0 deletions evoGUI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ function evogui.update_gui(event)
if not player_settings then
evogui.new_player({player_index = player_index})
player_settings = global.evogui[player.name]
elseif not player.gui.top.evoGUI then
evogui.create_sensor_display(player)
end

local sensor_flow = player.gui.top.evoGUI.sensor_flow
Expand Down

0 comments on commit 7daf141

Please sign in to comment.