diff --git a/mineleader.lua b/mineleader.lua index 5368e00..006a06b 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -436,7 +436,14 @@ local function quarry(x, y, z, relative, pattern) z = tonumber(z) local forward; local right; - + if relative then + forward = relHeading + right = relRightAxis + else + forward = heading + right = rightAxis + end + sendLog(QUARRY, "Starting quarry of (x length,depth,z length): " .. x .. "," .. y .. "," .. z .. " with a not pattern of: " .. pattern) for yDelta=1,math.abs(y) do if (y > 0) then @@ -462,6 +469,7 @@ local function quarry(x, y, z, relative, pattern) for xDelta=1,math.abs(x) do for zDelta=1,math.abs(z) do print("X,Z: " .. xDelta .. "," .. zDelta) + print("heading, right heading: " .. textutils.serialiseJSON(forward) .. ", " .. textutils.serializeJSON(right)) local success = true; if reverseTrip then orient(vector.new(0,0, -z), forward, right)