This commit is contained in:
Julian Brammer 2024-06-23 20:12:02 +02:00
parent 6fc3e03248
commit c6cd840a55

View File

@ -228,17 +228,16 @@ local function mineRow()
--save path progress --save path progress
state["dataCurrentPathProgress"] = i+1 state["dataCurrentPathProgress"] = i+1
setState()
end
print("row: " .. state["dataCurrentRow"]+1 .. "/" .. state["dataGoalRows"] .. ", pathProgress: " .. state["dataCurrentPathProgress"]+1 .. "/" .. state["dataGoalPathProgress"])
local pos = tutel.getPos() local pos = tutel.getPos()
--TODO SAVE LAST VALID POSITION HERE --TODO SAVE LAST VALID POSITION HERE
state["lastValidR"] = pos["r"] state["lastValidR"] = pos["r"]
state["lastValidX"] = pos["x"] state["lastValidX"] = pos["x"]
state["lastValidY"] = pos["y"] state["lastValidY"] = pos["y"]
state["lastValidZ"] = pos["z"] state["lastValidZ"] = pos["z"]
setState(state) setState()
end
print("row: " .. state["dataCurrentRow"]+1 .. "/" .. state["dataGoalRows"] .. ", pathProgress: " .. state["dataCurrentPathProgress"]+1 .. "/" .. state["dataGoalPathProgress"])
end end
local function mineChunk() local function mineChunk()