This commit is contained in:
Julian Brammer 2024-06-02 02:50:34 +02:00
parent c8fac4e1f2
commit b25a63545b

View File

@ -211,8 +211,7 @@ local function mineChunk()
mineRow(state["dataGoalPathProgress"]) mineRow(state["dataGoalPathProgress"])
--turn back and return to start of row if not last row --turn back and return to start of row if not last row
if i<state["dataGoalRows"]-1 then
if i<state["dataGoalRows"] then
turtle.turnLeft() turtle.turnLeft()
turtle.turnLeft() turtle.turnLeft()
--while not turtle.detect() do --while not turtle.detect() do
@ -222,8 +221,6 @@ local function mineChunk()
for j=1, state["dataGoalPathProgress"] do for j=1, state["dataGoalPathProgress"] do
turtle.forward() turtle.forward()
end end
end
--go to next row --go to next row
turtle.turnLeft() turtle.turnLeft()
@ -234,6 +231,9 @@ local function mineChunk()
turtle.digDown() turtle.digDown()
end end
turtle.turnLeft() turtle.turnLeft()
end
state["dataCurrentRow"] = i+1 state["dataCurrentRow"] = i+1