bug due to adapter rework
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user