.
This commit is contained in:
parent
6fc3e03248
commit
c6cd840a55
@ -228,17 +228,16 @@ local function mineRow()
|
|||||||
|
|
||||||
--save path progress
|
--save path progress
|
||||||
state["dataCurrentPathProgress"] = i+1
|
state["dataCurrentPathProgress"] = i+1
|
||||||
|
|
||||||
|
local pos = tutel.getPos()
|
||||||
|
--TODO SAVE LAST VALID POSITION HERE
|
||||||
|
state["lastValidR"] = pos["r"]
|
||||||
|
state["lastValidX"] = pos["x"]
|
||||||
|
state["lastValidY"] = pos["y"]
|
||||||
|
state["lastValidZ"] = pos["z"]
|
||||||
setState()
|
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()
|
|
||||||
--TODO SAVE LAST VALID POSITION HERE
|
|
||||||
state["lastValidR"] = pos["r"]
|
|
||||||
state["lastValidX"] = pos["x"]
|
|
||||||
state["lastValidY"] = pos["y"]
|
|
||||||
state["lastValidZ"] = pos["z"]
|
|
||||||
setState(state)
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function mineChunk()
|
local function mineChunk()
|
||||||
|
Loading…
Reference in New Issue
Block a user