Skip to content

Commit

Permalink
fix math.random crash, version bump to 0.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
sparr committed Sep 17, 2017
1 parent c49f897 commit dd651ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ global.curve_belts = global.curve_belts

-- poll_frequency is checks per second, polling_cycles is ticks per check
local polling_cycles = math.floor(60 / settings.global['belt_overflow_poll_frequency'].value)
local polling_remainder = math.random(polling_cycles)-1

-- use of math.random() during game loading was broken due to desyncs somewhere around 0.15.25
-- local polling_remainder = math.random(polling_cycles)-1
local polling_remainder = 23 % polling_cycles

-- local debugnum = 0
-- local function debug(...)
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": "belt-overflow",
"version": "0.15.3",
"version": "0.15.4",
"title": "Belt Overflow",
"author": "Sparr",
"homepage": "http://github.com/sparr/factorio-mod-belt-overflow",
Expand Down

0 comments on commit dd651ed

Please sign in to comment.