Fix bug
This commit is contained in:
parent
8ca3c7fce4
commit
d9abd033a0
@ -103,7 +103,7 @@ function selectCobble()
|
|||||||
for i = 1,16 do
|
for i = 1,16 do
|
||||||
turtle.select(i)
|
turtle.select(i)
|
||||||
item = turtle.getItemDetail()
|
item = turtle.getItemDetail()
|
||||||
if item["name"] == "minecraft:cobblestone" then
|
if item and item["name"] == "minecraft:cobblestone" then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user