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)