diff --git a/stock-manager.lua b/stock-manager.lua index 43ef4c8..1be6503 100644 --- a/stock-manager.lua +++ b/stock-manager.lua @@ -24,6 +24,7 @@ function remove_waste(source, discard_rest) _requestCount = amt, } ) + os.sleep(1) end for slot, item in pairs(peripheral.call(source, "stock")) do if amounts_to_keep[item.name] ~= nil then @@ -34,7 +35,6 @@ function remove_waste(source, discard_rest) elseif DISCARD_REST then discard(item, amt, DISCARD_ADDR) end - os.sleep(1) end end