fix: recipes should go before product cycling
This commit is contained in:
parent
cad4ef0c44
commit
3ec00d5c81
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue