From 841f262dacc78aeb720d12f752f5b230bc2c349a Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 17:15:35 -0400 Subject: [PATCH] updated --- main.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/main.lua b/main.lua index 4bf8cf1..ac682aa 100644 --- a/main.lua +++ b/main.lua @@ -48,11 +48,7 @@ end local function run() - -- Wait for all driver objects to be available - while not (tempDriver and coolantDriver and statusDriver and turbineDriver and burnRateDriver) do - print("Waiting for all drivers to be initialized...") - sleep(1) - end + while not reactor do print("Waiting for reactor signal...") @@ -67,6 +63,12 @@ local function run() sleep(1) end + -- Wait for all driver objects to be available + while not (tempDriver and coolantDriver and statusDriver and turbineDriver and burnRateDriver) do + print("Waiting for all drivers to be initialized...") + sleep(1) + end + parallel.waitForAll(runMonitors, runDisplay) end