From bc874c63ca2a07eb13da6a9c2103ad93ef8a8ac6 Mon Sep 17 00:00:00 2001 From: brulijam Date: Sun, 23 Jun 2024 20:29:28 +0200 Subject: [PATCH] did stuff --- src/brulijam/lib/tutel.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/brulijam/lib/tutel.lua b/src/brulijam/lib/tutel.lua index 1b07010..29f5d05 100755 --- a/src/brulijam/lib/tutel.lua +++ b/src/brulijam/lib/tutel.lua @@ -137,14 +137,14 @@ local function goToPosition(toR, toX, toY, toZ) --go to lastValidX while pos["x"] < toX do - while not pos["r"] == 3 do + while pos["r"] ~= 3 do right() end secureDig() forward() end while pos["x"] > toX do - while not pos["r"] == 1 do + while pos["r"] ~= 1 do right() end secureDig() @@ -153,14 +153,14 @@ local function goToPosition(toR, toX, toY, toZ) --go to lastValidZ while pos["z"] < toZ do - while not pos["r"] == 0 do + while pos["r"] ~= 0 do right() end secureDig() forward() end while pos["z"] > toZ do - while not pos["r"] == 2 do + while pos["r"] ~= 2 do right() end secureDig() @@ -168,7 +168,7 @@ local function goToPosition(toR, toX, toY, toZ) end --rotate in right direction - while not pos["r"] == toR do + while pos["r"] ~= toR do right() end end