fix(robot): bug in mutateRobotPosition due to typo

This commit is contained in:
Guillaume ARM 2024-05-25 23:31:38 +02:00
parent 494c32faf6
commit 4062c87f48

View File

@ -20,7 +20,7 @@ api.create = function(state, defaultStateFile)
local mutateRobotPosition = function(isBackward) local mutateRobotPosition = function(isBackward)
local incValue = 1 local incValue = 1
if isBackward then invValue = -1 end if isBackward then incValue = -1 end
if state.dir == 'FORWARD' then if state.dir == 'FORWARD' then
state.z = state.z + incValue state.z = state.z + incValue