fix: bad check on robotState.z

This commit is contained in:
Guillaume ARM 2024-05-08 22:31:18 +02:00
parent 4cfee8d445
commit defb4e3e3f

View File

@ -166,7 +166,7 @@ local function mineProcedure()
end end
-- 2. Check -- 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.finished = true
miner.mission = 'return-home' miner.mission = 'return-home'
miner.lastPositionState = miner.robot.getState() miner.lastPositionState = miner.robot.getState()