Skip to content

Commit

Permalink
Fix depart not working on lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Choumiko committed May 15, 2016
1 parent fc6eace commit e386ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control.lua
Expand Up @@ -710,7 +710,8 @@ function ontick(event)
end
keepWaiting = true
end
elseif train:isWaitingForAutoDepart() and (keepWaiting == nil or keepWaiting) then
end
if train:isWaitingForAutoDepart() and (keepWaiting == nil or keepWaiting) then
cargo = train:cargoCount()
local last = train.waiting.lastCheck
if train:cargoEquals(cargo, train.waiting.cargo, global.settings.depart.minFlow, event.tick - last) then
Expand Down

0 comments on commit e386ba7

Please sign in to comment.