From 4062c87f48bb586750e5bc9f55e37c524920c3da Mon Sep 17 00:00:00 2001 From: Guillaume ARM Date: Sat, 25 May 2024 23:31:38 +0200 Subject: [PATCH] fix(robot): bug in mutateRobotPosition due to typo --- libs/robot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/robot.lua b/libs/robot.lua index 0fc7ee8..70afb15 100644 --- a/libs/robot.lua +++ b/libs/robot.lua @@ -20,7 +20,7 @@ api.create = function(state, defaultStateFile) local mutateRobotPosition = function(isBackward) local incValue = 1 - if isBackward then invValue = -1 end + if isBackward then incValue = -1 end if state.dir == 'FORWARD' then state.z = state.z + incValue