diff --git a/oregen-manager.lua b/oregen-manager.lua index 0239b7b..ef904c4 100644 --- a/oregen-manager.lua +++ b/oregen-manager.lua @@ -332,7 +332,6 @@ function run (ticker, export_storage, current_modes) local export_amounts = getAmounts(export_storage.list) local stock_amounts = getAmounts(ticker.stock) updateModes(current_modes, stock_amounts) - cycleItems(ticker, stock_amounts) for item, mode in pairs(current_modes) do -- mode[1] is mode, mode[2] is amt_extra when exporting if mode[1] == "recipe" then @@ -347,6 +346,7 @@ function run (ticker, export_storage, current_modes) export(ticker, item, amt) end end + cycleItems(ticker, stock_amounts) os.sleep(SLEEP_T) return run (ticker, export_storage, current_modes) end