Couple of bugfixes for farm_control.lua
This commit is contained in:
parent
c5bb5ff425
commit
86a170fce1
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ local HARVESTER_SIGNAL_TIME = 2
|
||||||
|
|
||||||
function pull_items (src, dest)
|
function pull_items (src, dest)
|
||||||
local src = peripheral.wrap(src)
|
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
|
for slot, _ in pairs(src.list()) do
|
||||||
src.pushItems(dest, slot)
|
src.pushItems(dest, slot)
|
||||||
end
|
end
|
||||||
|
|
@ -75,7 +75,7 @@ while true do
|
||||||
load_stack(item, STORAGE, HARVESTER)
|
load_stack(item, STORAGE, HARVESTER)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
send_harvester()
|
send_harvester(HARVESTER_RELAY)
|
||||||
os.sleep(SLEEP_TIME)
|
os.sleep(SLEEP_TIME)
|
||||||
pull_items(HARVESTER, STORAGE)
|
pull_items(HARVESTER, STORAGE)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue