Update 'Turtle/Wheat.lua'
This commit is contained in:
parent
d1922fa99d
commit
cc3f3c0e21
@ -167,6 +167,24 @@ function Wheat:fillSeeds(goBack)
|
|||||||
end
|
end
|
||||||
|
|
||||||
self:clearInv("seedChest")
|
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
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user