From 7ad6cecaa3d962740ac27eed66791b5ea5900707 Mon Sep 17 00:00:00 2001 From: code002lover Date: Sat, 18 Jul 2026 21:19:15 +0200 Subject: [PATCH] fix targetOutput staying at 0 due to save before init --- reactor.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactor.lua b/reactor.lua index 8d90306..d0713ec 100644 --- a/reactor.lua +++ b/reactor.lua @@ -164,9 +164,7 @@ function load_config() sr.close() end -if fs.exists("reactorconfig.txt") == false then - save_config() -else +if fs.exists("reactorconfig.txt") then load_config() end @@ -174,6 +172,8 @@ if not targetOutput then targetOutput = fluxgate.getSignalLowFlow() end +save_config() + function reset() term.clear() term.setCursorPos(1,1)