bug due to adapter rework

This commit is contained in:
kepler155c
2018-03-23 13:06:21 -04:00
parent 14a62585d8
commit f62b760174
2 changed files with 1 additions and 3 deletions

View File

@@ -6,13 +6,11 @@ local turtle = _G.turtle
local CRAFTING_TABLE = 'minecraft:crafting_table'
local function clearGrid(inventory)
print('clearing')
for i = 1, 16 do
local count = turtle.getItemCount(i)
if count > 0 then
inventory:insert(i, count)
if turtle.getItemCount(i) ~= 0 then
print('failed to insert')
return false
end
end