diff --git a/Turtle/Wheat.lua b/Turtle/Wheat.lua index 650ed29..ca3a833 100644 --- a/Turtle/Wheat.lua +++ b/Turtle/Wheat.lua @@ -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