Update 'Turtle/Wheat.lua'

This commit is contained in:
manuel 2023-01-08 18:57:55 +00:00
parent d1922fa99d
commit cc3f3c0e21

View File

@ -167,6 +167,24 @@ function Wheat:fillSeeds(goBack)
end
self:clearInv("seedChest")
local seedsRemaining = self:calculateSeeds()
for i = 1, 16 do
turtle.select(i)
local amount
if(seedsRemaining > 64) then
amount = 64
else
amount = seedsRemaining
end
turtle.suckDown(amount)
if(turtle.getItemCount() ~= amount) then
return false
end
seedsRemaining = seedsRemaining - amount
if(seedsRemaining == 0) then
break
end
end
end