diff --git a/control.lua b/control.lua index d498045..c2ccc69 100644 --- a/control.lua +++ b/control.lua @@ -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(...) diff --git a/info.json b/info.json index d61d86a..db40692 100644 --- a/info.json +++ b/info.json @@ -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",