From 825bc0b52353ee8dc1e7826cb16acabe3c3c6dd4 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Wed, 5 May 2021 18:58:11 -0500 Subject: [PATCH] Fixed orient not returning true on possible movement. --- mineleader.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mineleader.lua b/mineleader.lua index 18798c3..d2ea94b 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -250,7 +250,7 @@ end local function orient(v, forward, right) print("Attempting to orient such that " .. tostring(v) .. " == " .. tostring(forward) .. ".") if vectorEqual(v, forward) then - return + return true elseif vectorEqual(v, right) then return attemptMoveRight() elseif vectorEqual(v, -right) then @@ -258,7 +258,7 @@ local function orient(v, forward, right) else return attemptMoveRight() and attemptMoveRight() end - print("Orientation complete.") + return false end local function attemptStartTask(name, f, ...)