.
This commit is contained in:
parent
33c17d25e7
commit
06d793d43c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user