fix: restore main loop block structure

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