fix: restore main loop block structure
This commit is contained in:
@@ -2327,9 +2327,8 @@ function Main.loop()
|
||||
end
|
||||
end
|
||||
end
|
||||
-- Update Upcoming Trains globally for the monitor
|
||||
State.upcomingTrains = newUpcoming
|
||||
|
||||
end
|
||||
|
||||
-- Try CC:C Bridge Display Link (Legacy Text Parsing) if Block Reader is not available
|
||||
if not Peripherals.blockReader and Peripherals.createTarget then
|
||||
local lines = Peripherals.createTarget.dump()
|
||||
@@ -2410,6 +2409,9 @@ function Main.loop()
|
||||
end
|
||||
end
|
||||
|
||||
-- Update Upcoming Trains globally for the monitor
|
||||
State.upcomingTrains = newUpcoming
|
||||
|
||||
if not Peripherals.station then
|
||||
State.currentTrain = nil
|
||||
Display.render()
|
||||
|
||||
Reference in New Issue
Block a user