Another small change in my puke function. It should work now

This commit is contained in:
sascham 2020-12-20 17:22:58 +00:00
parent f988e1fd10
commit 7d6f7a4085

View File

@ -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