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,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)