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"])
|
||||
end
|
||||
|
||||
local function mineChunk(size)
|
||||
local function mineChunk()
|
||||
state = getState()
|
||||
|
||||
state["dataGoalRows"] = size
|
||||
state["dataGoalPathProgress"] = 3*(size-1)+1
|
||||
state["dataGoalRows"] = state["dataCurrentFibo"]
|
||||
state["dataGoalPathProgress"] = 3*(state["dataCurrentFibo"]-1)+1
|
||||
|
||||
for i=state["dataCurrentRow"], state[dataGoalRows]-1 do
|
||||
mineRow(state["dataGoalPathProgress"])
|
||||
@ -236,7 +236,7 @@ local function mineFibo()
|
||||
state = getState()
|
||||
|
||||
while true do
|
||||
mineChunk(state["dataCurrentFibo"])
|
||||
mineChunk()
|
||||
|
||||
--go to next chunk
|
||||
turtle.turnRight()
|
||||
|
Loading…
Reference in New Issue
Block a user