From d3c1321fe3f5ee914cfd7177b2348718bf581823 Mon Sep 17 00:00:00 2001 From: Emerson Rosen-Jones Date: Sun, 28 Dec 2025 17:47:21 -0500 Subject: [PATCH] fix: remove excess sleeping only sleep after discarding --- stock-manager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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