updated fibo miner
This commit is contained in:
parent
1b6bba748d
commit
22969c1719
@ -194,7 +194,7 @@ local function mineRow(distance)
|
|||||||
|
|
||||||
--save path progress
|
--save path progress
|
||||||
state["dataCurrentPathProgress"] = i+1
|
state["dataCurrentPathProgress"] = i+1
|
||||||
state["fueLevel"] = turtle.getFuelLevel()
|
state["fuelLevel"] = turtle.getFuelLevel()
|
||||||
setState(state)
|
setState(state)
|
||||||
end
|
end
|
||||||
print("row: " .. state["dataCurrentRow"]+1 .. "/" .. state["dataGoalRows"] .. ", pathProgress: " .. state["dataCurrentPathProgress"]+1 .. "/" .. state["dataGoalPathProgress"])
|
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["dataCurrentRow"] = i+1
|
||||||
state["dataCurrentPathProgress"] = 0
|
state["dataCurrentPathProgress"] = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--reset row progress
|
||||||
|
state["dataCurrentRow"] = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
local function mineFibo()
|
local function mineFibo()
|
||||||
state = getState()
|
state = getState()
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
|
|
||||||
mineChunk()
|
mineChunk()
|
||||||
|
|
||||||
--go to next chunk
|
--go to next chunk
|
||||||
|
Loading…
Reference in New Issue
Block a user