fix: remove excess sleeping

only sleep after discarding
This commit is contained in:
Emerson Rosen-Jones 2025-12-28 17:47:21 -05:00
parent 23c8afe8ee
commit d3c1321fe3

View file

@ -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