This commit is contained in:
Julian Brammer 2024-06-02 02:33:11 +02:00
parent 72975f35d1
commit 5949cc22fb

View File

@ -213,7 +213,7 @@ local function mineChunk()
--turn back and return to start of row if not last row
turtle.turnLeft()
turtle.turnLeft()
if i<state["dataGoalRows"] then
if i<state["dataGoalRows"]-1 then
while not turtle.detect() do
turtle.forward()
end
@ -222,15 +222,14 @@ local function mineChunk()
--go to next row
turtle.turnLeft()
for j=0, 2 do
for j=0, 2 doe
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.digDown()
end
turtle.turnLeft()
turtle.dig()
turtle.forward()
state["dataCurrentRow"] = i+1
state["dataCurrentPathProgress"] = 0
@ -255,7 +254,6 @@ local function mineFibo()
turtle.digUp()
turtle.digDown()
end
turtle.turnRight()
--get next fibo number
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)