Update 'Turtle/Wheat.lua'
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user