update fibo miner
This commit is contained in:
parent
af41123b55
commit
3b799b28b8
@ -200,11 +200,11 @@ local function mineRow(distance)
|
|||||||
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"])
|
||||||
end
|
end
|
||||||
|
|
||||||
local function mineChunk(size)
|
local function mineChunk()
|
||||||
state = getState()
|
state = getState()
|
||||||
|
|
||||||
state["dataGoalRows"] = size
|
state["dataGoalRows"] = state["dataCurrentFibo"]
|
||||||
state["dataGoalPathProgress"] = 3*(size-1)+1
|
state["dataGoalPathProgress"] = 3*(state["dataCurrentFibo"]-1)+1
|
||||||
|
|
||||||
for i=state["dataCurrentRow"], state[dataGoalRows]-1 do
|
for i=state["dataCurrentRow"], state[dataGoalRows]-1 do
|
||||||
mineRow(state["dataGoalPathProgress"])
|
mineRow(state["dataGoalPathProgress"])
|
||||||
@ -236,7 +236,7 @@ local function mineFibo()
|
|||||||
state = getState()
|
state = getState()
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
mineChunk(state["dataCurrentFibo"])
|
mineChunk()
|
||||||
|
|
||||||
--go to next chunk
|
--go to next chunk
|
||||||
turtle.turnRight()
|
turtle.turnRight()
|
||||||
|
Loading…
Reference in New Issue
Block a user