Fixed the no turning thing

How did I miss that!?
This commit is contained in:
LDDestroier 2019-02-23 18:54:10 -05:00 committed by GitHub
parent 12f56c6a59
commit d7cc9a6c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -51,8 +51,10 @@ local move = function(direction)
turtle.forward()
pos.x = pos.x - math.cos(math.rad(pos.f * 90))
elseif direction == "left" then
turtle.turnLeft()
pos.f = (pos.f - 1) % 4
elseif direction == "right" then
turtle.turnRight()
pos.f = (pos.f + 1) % 4
end
end