fix(robot): bug in mutateRobotPosition due to typo
This commit is contained in:
parent
494c32faf6
commit
4062c87f48
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user