fix(inferium-harvester): replant procedure
This commit is contained in:
parent
daa36c82de
commit
6b4e4f248d
@ -140,7 +140,7 @@ end
|
||||
local function retrieveHomePositionProcedure()
|
||||
if turtleUtils.getInventory('bottom') then
|
||||
retrieveChestFuelOrientation()
|
||||
turtle.turnLeft()
|
||||
return
|
||||
end
|
||||
|
||||
turtle.turnRight()
|
||||
@ -412,9 +412,14 @@ local function replantProcedure()
|
||||
local seedsToRemove = difference(localPlan, remotePlan)
|
||||
local seedsToPlant = difference(remotePlan, localPlan)
|
||||
|
||||
removeSeeds(seedsToRemove)
|
||||
retrieveSeeds(seedsToPlant)
|
||||
replantSeeds()
|
||||
if #seedsToRemove > 0 then
|
||||
removeSeeds(seedsToRemove)
|
||||
end
|
||||
|
||||
if #seedsToPlant > 0 then
|
||||
retrieveSeeds(seedsToPlant)
|
||||
replantSeeds()
|
||||
end
|
||||
end
|
||||
|
||||
-- Main procedure
|
||||
|
||||
Loading…
Reference in New Issue
Block a user