Another fix attempt

This commit is contained in:
Harrison Deng 2021-05-09 13:23:44 -05:00
parent e1d98d0547
commit ef0b0f94ce

View File

@ -436,6 +436,13 @@ local function quarry(x, y, z, relative, pattern)
z = tonumber(z) z = tonumber(z)
local forward; local forward;
local right; 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) 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 for yDelta=1,math.abs(y) do
@ -462,6 +469,7 @@ local function quarry(x, y, z, relative, pattern)
for xDelta=1,math.abs(x) do for xDelta=1,math.abs(x) do
for zDelta=1,math.abs(z) do for zDelta=1,math.abs(z) do
print("X,Z: " .. xDelta .. "," .. zDelta) print("X,Z: " .. xDelta .. "," .. zDelta)
print("heading, right heading: " .. textutils.serialiseJSON(forward) .. ", " .. textutils.serializeJSON(right))
local success = true; local success = true;
if reverseTrip then if reverseTrip then
orient(vector.new(0,0, -z), forward, right) orient(vector.new(0,0, -z), forward, right)