This commit is contained in:
Julian Brammer 2024-06-02 02:23:29 +02:00
parent 2a72b3bfdb
commit 72975f35d1

View File

@ -205,13 +205,14 @@ local function mineChunk()
state["dataGoalRows"] = state["dataCurrentFibo"]
state["dataGoalPathProgress"] = 3*(state["dataCurrentFibo"]-1)+1
setState(state)
for i=state["dataCurrentRow"], state["dataGoalRows"]-1 do
mineRow(state["dataGoalPathProgress"])
--turn back and return to start of row if not last row
turtle.turnLeft()
turlte.turnLeft()
turtle.turnLeft()
if i<state["dataGoalRows"] then
while not turtle.detect() do
turtle.forward()
@ -258,5 +259,8 @@ local function mineFibo()
--get next fibo number
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)
setState(state)
end
end
end
mineFibo()