fix(inferium-harvester): bug on harvest procedure
This commit is contained in:
parent
467a1c9168
commit
9770321c20
@ -5,7 +5,7 @@ local config = {
|
||||
|
||||
local MIN_FUEL_NEEDED = (10 + config.firstCropZ + config.length) * 2
|
||||
|
||||
local VERSION = "0.1.3"
|
||||
local VERSION = "0.1.4"
|
||||
local IDLE_TIME = 2
|
||||
|
||||
local turtleUtils = require('libs/turtle-utils')
|
||||
@ -112,7 +112,7 @@ local function goToHarvestPoint()
|
||||
end
|
||||
|
||||
local function goBackToHome()
|
||||
for i=1, config.firstCropZ - 1, 1 do
|
||||
for i=1, config.firstCropZ, 1 do
|
||||
turtle.forward()
|
||||
end
|
||||
end
|
||||
@ -143,7 +143,10 @@ end
|
||||
local function harvestProcedure()
|
||||
for i=1, config.length, 1 do
|
||||
harvestDown()
|
||||
forward()
|
||||
|
||||
if i ~= config.length then
|
||||
forward()
|
||||
end
|
||||
end
|
||||
|
||||
turtle.turnLeft()
|
||||
@ -151,7 +154,10 @@ local function harvestProcedure()
|
||||
|
||||
for i=1, config.length, 1 do
|
||||
harvestDown()
|
||||
forward()
|
||||
|
||||
if i ~= config.length then
|
||||
forward()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user