diff --git a/biofuel-manager.lua b/biofuel-manager.lua index 1bfa83e..a39c873 100644 --- a/biofuel-manager.lua +++ b/biofuel-manager.lua @@ -141,5 +141,10 @@ if arg ~= nil and arg[1] == "run" then local requester = peripheral.wrap(MAIN_REQUESTER) requester.setAddress(FACTORY_ADDRESS) local ticker = peripheral.wrap(SUBNET_TICKER) - run(requester, ticker) + local ran = false + while not ran do + ran, result = run(ticker, requester) + if not ran then print(result) end + os.sleep(SLEEP_T) + end end