This commit is contained in:
Julian Brammer 2024-06-23 20:05:21 +02:00
parent ebd5f19a3f
commit 6fc3e03248

View File

@ -228,6 +228,7 @@ local function mineRow()
--save path progress
state["dataCurrentPathProgress"] = i+1
setState()
end
print("row: " .. state["dataCurrentRow"]+1 .. "/" .. state["dataGoalRows"] .. ", pathProgress: " .. state["dataCurrentPathProgress"]+1 .. "/" .. state["dataGoalPathProgress"])
local pos = tutel.getPos()
@ -279,10 +280,12 @@ local function mineChunk()
state["dataCurrentRow"] = i+1
state["dataCurrentPathProgress"] = 0
setState()
end
--reset row progress
state["dataCurrentRow"] = 0
setState()
end
local function mineFibo()
@ -305,6 +308,7 @@ local function mineFibo()
--get next fibo number
state["dataCurrentFibo"] = math.floor((state["dataCurrentFibo"] * (1+math.sqrt(5))/2) + 0.5)
setState()
end
end