From 0783f96e2da79464fb3f395d46f8f5b524946c6b Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Fri, 7 May 2021 20:43:39 -0500 Subject: [PATCH] Added more logging and changed orientation back to normalizing. --- mineleader.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mineleader.lua b/mineleader.lua index eba9e1c..a2fe94f 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -249,7 +249,7 @@ local function attemptBreakDown(notPattern) end local function orient(v, forward, right) - v = v / (v:length() * v:normalize()) + v = v:normalize() print("Attempting to orient such that " .. tostring(v) .. " == " .. tostring(forward) .. ".") if vectorEqual(v, forward) then return true @@ -437,6 +437,7 @@ local function quarry(x, y, z, forward, right, pattern) local bool reverseTrip = false; for xDelta=1,math.abs(x) do for zDelta=1,math.abs(z) do + print("X,Z: " .. xDelta .. "," .. zDelta) local success = true; if reverseTrip then orient(vector.new(0,0, -z), forward, right)