diff --git a/miner.lua b/miner.lua index b89033e..21dd131 100644 --- a/miner.lua +++ b/miner.lua @@ -166,7 +166,7 @@ local function mineProcedure() end -- 2. Check - if robotState.x == MAX_X and robotState.y == MAX_Y and robotState.z == MAX_Z then + if robotState.x == MAX_X and robotState.y == MAX_Y and robotState.z == 0 then miner.finished = true miner.mission = 'return-home' miner.lastPositionState = miner.robot.getState()