From a923fe846d739c7742b8cdae166e718511e32b26 Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Wed, 8 May 2024 22:34:26 +0200 Subject: [PATCH] fix: last bug with robotState.z --- miner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner.lua b/miner.lua index 21dd131..d9b81de 100644 --- a/miner.lua +++ b/miner.lua @@ -171,7 +171,7 @@ local function mineProcedure() miner.mission = 'return-home' miner.lastPositionState = miner.robot.getState() print('> Starting return home procedure because mining session is finished...') - elseif robotState.x == MAX_X and robotState.z == MAX_Z then + elseif robotState.x == MAX_X and robotState.z == 0 then -- this part assume that the size of the mine is even miner.robot.turnRight()