Attempt at fixing heading.
This commit is contained in:
parent
231781eb89
commit
4cba73e9d0
@ -436,13 +436,7 @@ 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
|
||||||
if (y > 0) then
|
if (y > 0) then
|
||||||
@ -475,6 +469,13 @@ local function quarry(x, y, z, relative, pattern)
|
|||||||
else
|
else
|
||||||
orient(vector.new(0, 0, z), forward, right)
|
orient(vector.new(0, 0, z), forward, right)
|
||||||
end
|
end
|
||||||
|
if relative then
|
||||||
|
forward = relHeading
|
||||||
|
right = relRightAxis
|
||||||
|
else
|
||||||
|
forward = heading
|
||||||
|
right = rightAxis
|
||||||
|
end
|
||||||
success = success and attemptBreakUp(pattern)
|
success = success and attemptBreakUp(pattern)
|
||||||
success = success and attemptBreakDown(pattern)
|
success = success and attemptBreakDown(pattern)
|
||||||
success = success and attemptBreakFront(pattern)
|
success = success and attemptBreakFront(pattern)
|
||||||
@ -492,6 +493,13 @@ local function quarry(x, y, z, relative, pattern)
|
|||||||
sendLog(FAILED, "Unable to move to next row.")
|
sendLog(FAILED, "Unable to move to next row.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
if relative then
|
||||||
|
forward = relHeading
|
||||||
|
right = relRightAxis
|
||||||
|
else
|
||||||
|
forward = heading
|
||||||
|
right = rightAxis
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user