Another small change in my puke function. It should work now
This commit is contained in:
1 parent
f988e1fd10
commit
7d6f7a4085
1 file changed
+4
-2
+4
-2
@@ -202,8 +202,10 @@ end
|
||||
function puke()
|
||||
for i = 1, 16 do
|
||||
turtle.select(i)
|
||||
item = turtle.getItemDetail(slot)
|
||||
print("Puking out: " .. item['name'])
|
||||
item = turtle.getItemDetail()
|
||||
if item ~= nil then
|
||||
print("Puking out: " .. item['name'])
|
||||
end
|
||||
turtle.drop()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user