replaced "&&" with "and".
This commit is contained in:
parent
bbaadcb28d
commit
b180f85aad
@ -431,10 +431,10 @@ local function quarry(x, y, z, forward, right, pattern)
|
|||||||
for zDelta=1,math.abs(z) do
|
for zDelta=1,math.abs(z) do
|
||||||
local success = true;
|
local success = true;
|
||||||
orient(vector.new(0, 0, z), forward, right)
|
orient(vector.new(0, 0, z), forward, right)
|
||||||
success = success && attemptBreakUp(pattern)
|
success = success and attemptBreakUp(pattern)
|
||||||
success = success && attemptBreakDown(pattern)
|
success = success and attemptBreakDown(pattern)
|
||||||
success = success && attemptBreakFront(pattern)
|
success = success and attemptBreakFront(pattern)
|
||||||
success = success && attemptMoveForward(pattern)
|
success = success and attemptMoveForward(pattern)
|
||||||
if not success then
|
if not success then
|
||||||
sendLog(FAILED, "Unable to proceed with quarrying.")
|
sendLog(FAILED, "Unable to proceed with quarrying.")
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user