Skip to content

Commit

Permalink
Fix crash on new games or players joining multiplayer games due to re…
Browse files Browse the repository at this point in the history
…ferencing gui_update instead of update_gui
  • Loading branch information
dewiniaid committed Dec 13, 2017
1 parent 3e74a7e commit ae9a0fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ Make minimum and maximum timewarp amounts configurable.

## Changelog

### 0.1.3 (2017-12-13)
* Fix crash on new games or players joining multiplayer games.

### 0.1.2 (2017-12-13)
* Update for Factorio 0.16
* Made the time indicator display configurable: It can now be always shown, always hidden, or only shown while warping.
Expand Down
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ script.on_load(on_load)
script.on_configuration_changed(on_init)
script.on_event(defines.events.on_player_created, function(event)
update_preferences(event.player_index)
gui_update(event.player_index)
update_gui(event.player_index)
end)
script.on_event(defines.events.on_player_removed, function(event)
display_preferences[event.player_index] = nil
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TimeControl",
"version": "0.1.2",
"version": "0.1.3",
"title": "Time Control",
"author": "Dewin",
"contact": "https://github.com/dewiniaid/TimeControl",
Expand Down

0 comments on commit ae9a0fb

Please sign in to comment.