From 38f32f6e1ca2aa1b94fee526b4a1b327d40f22b7 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 8 Jan 2023 19:47:47 +0000 Subject: [PATCH] Update 'Turtle/Wheat.lua' --- Turtle/Wheat.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Turtle/Wheat.lua b/Turtle/Wheat.lua index ca3a833..a375c5f 100644 --- a/Turtle/Wheat.lua +++ b/Turtle/Wheat.lua @@ -127,13 +127,16 @@ function Wheat:createMatrix() turtle.turnRight() digForward() turtle.turnRight() + self.dir = (self.dir + 2) % 4 else turtle.turnLeft() digForward() turtle.turnLeft() + self.dir = (self.dir + 2) % 4 end end end + self.x, self.y, self.z = gps.locate() end function Wheat:clearInv(goBack)