This commit is contained in:
Julian Brammer 2024-06-17 03:01:59 +02:00
parent 00a8c0b243
commit 371aecf5b2

View File

@ -14,13 +14,13 @@ function selectSeed()
itemDetail = turtle.getItemDetail() itemDetail = turtle.getItemDetail()
if itemDetail ~= nil then if itemDetail ~= nil then
if itemDetail.name == toPlant[currentSeed] then if itemDetail.name == toPlant[currentSeed] then
currentSeed = currentSeed + 1
if currentSeed >= 4 then
currentSeed = 1
end
return return
end end
end end
currentSeed = currentSeed + 1
if currentSeed >= 4 then
currentSeed = 1
end
end end
print("No seeds left") print("No seeds left")
end end