.
This commit is contained in:
parent
ebd5f19a3f
commit
6fc3e03248
@ -228,6 +228,7 @@ local function mineRow()
|
|||||||
|
|
||||||
--save path progress
|
--save path progress
|
||||||
state["dataCurrentPathProgress"] = i+1
|
state["dataCurrentPathProgress"] = i+1
|
||||||
|
setState()
|
||||||
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"])
|
||||||
local pos = tutel.getPos()
|
local pos = tutel.getPos()
|
||||||
@ -279,10 +280,12 @@ local function mineChunk()
|
|||||||
|
|
||||||
state["dataCurrentRow"] = i+1
|
state["dataCurrentRow"] = i+1
|
||||||
state["dataCurrentPathProgress"] = 0
|
state["dataCurrentPathProgress"] = 0
|
||||||
|
setState()
|
||||||
end
|
end
|
||||||
|
|
||||||
--reset row progress
|
--reset row progress
|
||||||
state["dataCurrentRow"] = 0
|
state["dataCurrentRow"] = 0
|
||||||
|
setState()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function mineFibo()
|
local function mineFibo()
|
||||||
@ -305,6 +308,7 @@ local function mineFibo()
|
|||||||
|
|
||||||
--get next fibo number
|
--get next fibo number
|
||||||
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)
|
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)
|
||||||
|
setState()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user