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

View File

@@ -124,7 +124,7 @@ local function craftItem(item, qty)
Util.print('Crafting %d %s', (qty or 1), item)
success, msg = turtle.craftItem(item, qty or 1, {
wrapSide = 'top',
side = 'top',
direction = 'down',
})
repeat until not turtle.suckUp()