Skip to content

Commit

Permalink
skip updating line when autorefuel added the refuel station
Browse files Browse the repository at this point in the history
  • Loading branch information
Choumiko committed Sep 5, 2015
1 parent fd13455 commit 2e780f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Train.lua
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,10 @@ Train = {

updateLine = function(self)
if self.line and global.trainLines[self.line] then
if self.settings.autoRefuel and self.train.schedule.current == inSchedule(self:refuelStation(), self.train.schedule) then
--self:flyingText("Skipping line update", YELLOW)
return
end
local trainLine = global.trainLines[self.line]
if self.line and trainLine.changed > self.lineVersion then
if self.lineVersion >= 0 then
Expand Down

0 comments on commit 2e780f3

Please sign in to comment.