updated fibo miner
This commit is contained in:
parent
1b6bba748d
commit
22969c1719
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user