Select chest slot

This commit is contained in:
Gabriel Tofvesson 2024-12-01 05:04:52 +01:00
parent b10bc73833
commit 65f6555f44

View File

@ -67,7 +67,7 @@ local function handleFullInv(minEmpty)
-- Try: place, check block above is empty or dig it, place
-- If all fails, print error, wait and repeat
if not (turtle.placeUp() or ((not turtle.inspectUp() or turtle.digUp()) and turtle.placeUp())) then
if not (turtle.select(CHEST_SLOT) and (turtle.placeUp() or ((not turtle.inspectUp() or turtle.digUp()) and turtle.placeUp()))) then
Logger:error("Can't place chest :(")
os.sleep(5)
goto continue