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