Added block breaking to when switching rows during quarrying.

This commit is contained in:
Harrison Deng 2021-05-07 19:51:45 -05:00
parent ff9659ba8a
commit 3c634fe129

View File

@ -443,8 +443,9 @@ local function quarry(x, y, z, forward, right, pattern)
sendLog(FAILED, "Unable to proceed with quarrying.") sendLog(FAILED, "Unable to proceed with quarrying.")
end end
end end
if not (orient(vector.new(x, 0, 0), forward, right) and attemptMoveForward()) then if not (orient(vector.new(x, 0, 0), forward, right) and attemptBreakFront(pattern) and attemptMoveForward()) then
sendLog(FAILED, "Unable to move to next row.") sendLog(FAILED, "Unable to move to next row.")
return
end end
end end
end end