From d7cc9a6c2c1989e8eb02a1a8b5442ce6f6418ef1 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sat, 23 Feb 2019 18:54:10 -0500 Subject: [PATCH] Fixed the no turning thing How did I miss that!? --- cubedig.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cubedig.lua b/cubedig.lua index 939b544..d19a617 100644 --- a/cubedig.lua +++ b/cubedig.lua @@ -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