fix: remove excess sleeping
only sleep after discarding
This commit is contained in:
parent
23c8afe8ee
commit
d3c1321fe3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue