diff --git a/src/brulijam/t-farmer.lua b/src/brulijam/t-farmer.lua index 144f6e6..a1ec4ff 100644 --- a/src/brulijam/t-farmer.lua +++ b/src/brulijam/t-farmer.lua @@ -8,23 +8,6 @@ local toPlant = { [3] = "minecraft:carrot", } -function selectSeed() - for i=1, 16 do - turtle.select(i) - itemDetail = turtle.getItemDetail() - currentSeed = currentSeed + 1 - if currentSeed > 4 then - currentSeed = 1 - end - if itemDetail ~= nil then - if itemDetail.name == toPlant[currentSeed] then - return - end - end - end - print("No seeds left") -end - local function doField() turtle.up() @@ -72,7 +55,8 @@ local function kiss() turtle.forward() turtle.digDown() turtle.suckDown() - selectSeed() + turtle.select(currentSeed) + currentSeed = currentSeed + 1 turtle.placeDown() end if i%2==1 then