fix: restore main loop block structure

This commit is contained in:
2026-08-02 16:22:44 +08:00
parent 544179758e
commit 5134a4ebf0
+4 -2
View File
@@ -2327,8 +2327,7 @@ 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
@@ -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()