Couple of bugfixes for farm_control.lua

This commit is contained in:
Emerson Rosen-Jones 2025-09-28 19:25:45 -04:00
parent c5bb5ff425
commit 86a170fce1

View file

@ -16,7 +16,7 @@ local HARVESTER_SIGNAL_TIME = 2
function pull_items (src, dest)
local src = peripheral.wrap(src)
if src.size() < 1 return nil end
if src.size() < 1 then return nil end
for slot, _ in pairs(src.list()) do
src.pushItems(dest, slot)
end
@ -75,7 +75,7 @@ while true do
load_stack(item, STORAGE, HARVESTER)
end
end
send_harvester()
send_harvester(HARVESTER_RELAY)
os.sleep(SLEEP_TIME)
pull_items(HARVESTER, STORAGE)
end