Dig down twice after a panel

This commit is contained in:
Gabriel Tofvesson 2024-12-03 23:00:39 +01:00
parent d80ff4e679
commit 408fed1ad2

View File

@ -168,11 +168,13 @@ local function rectPrism(depth, width, length, leftFirst)
Logger:debug("Handling full inventory with target:", invEmptyTarget, " handled:", handleFullInv(invEmptyTarget)) Logger:debug("Handling full inventory with target:", invEmptyTarget, " handled:", handleFullInv(invEmptyTarget))
end end
Logger:trace("RectPrism:", depth, width, length) Logger:trace("RectPrism:", depth, width, length)
for i=1,depth do for _=1,depth do
panel(width, length, leftFirst, checkRefuel, checkFullInv) panel(width, length, leftFirst, checkRefuel, checkFullInv)
while not turtle.down() do for __=1,2 do
turtle.digDown() while not turtle.down() do
checkRefuel() turtle.digDown()
checkRefuel()
end
end end
leftFirst = (not not leftFirst) ~= (width % 2 == 0) leftFirst = (not not leftFirst) ~= (width % 2 == 0)
end end