Skip to content

Commit 26682ec

Browse files
authored
Merge pull request #29 from sudojunior/patch/event-interval
Patch event interval to occur as timer runs to zero
2 parents 07db935 + e88f2dc commit 26682ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ script.on_event(defines.events.on_tick, function(event)
3939

4040
storage.time_until_event = storage.time_until_event - 1
4141

42-
if storage.time_until_event > 0 then return end
42+
if storage.time_until_event >= 0 then return end
4343
reset_event_time() -- prevent further attempts on future frames
4444
-- event trigger
4545
local valid_players = game.connected_players

0 commit comments

Comments
 (0)