1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-01-05 23:10:28 +00:00

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

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