updated fibo miner

This commit is contained in:
Julian Brammer 2024-06-02 02:02:21 +02:00
parent 1b6bba748d
commit 22969c1719

View File

@ -194,7 +194,7 @@ local function mineRow(distance)
--save path progress
state["dataCurrentPathProgress"] = i+1
state["fueLevel"] = turtle.getFuelLevel()
state["fuelLevel"] = turtle.getFuelLevel()
setState(state)
end
print("row: " .. state["dataCurrentRow"]+1 .. "/" .. state["dataGoalRows"] .. ", pathProgress: " .. state["dataCurrentPathProgress"]+1 .. "/" .. state["dataGoalPathProgress"])
@ -230,12 +230,16 @@ local function mineChunk()
state["dataCurrentRow"] = i+1
state["dataCurrentPathProgress"] = 0
end
--reset row progress
state["dataCurrentRow"] = 0
end
local function mineFibo()
state = getState()
while true do
mineChunk()
--go to next chunk