This commit is contained in:
Navid Sassan 2023-11-23 00:53:12 +01:00
parent 363150a701
commit 470fcd8238

View File

@ -74,14 +74,15 @@ while true do
print('could not find any empty buckets. returning and refilling') print('could not find any empty buckets. returning and refilling')
returnToBase() returnToBase()
despositRefill() despositRefill()
end
turtle.select(bucket) else
-- try to fill it turtle.select(bucket)
turtle.placeDown() -- try to fill it
if isEmptyBucket() then turtle.placeDown()
if turtle.forward() then if isEmptyBucket() then
ForwardCounter = ForwardCounter + 1 if turtle.forward() then
ForwardCounter = ForwardCounter + 1
end
end end
end end
end end