diff --git a/src/brulijam/t-farmer.lua b/src/brulijam/t-farmer.lua index b720407..144f6e6 100644 --- a/src/brulijam/t-farmer.lua +++ b/src/brulijam/t-farmer.lua @@ -12,15 +12,15 @@ 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 - currentSeed = currentSeed + 1 - if currentSeed > 4 then - currentSeed = 1 - end end print("No seeds left") end