update
This commit is contained in:
parent
9a8ccbb013
commit
b48d95b6ab
@ -194,8 +194,8 @@ function scanWorkRequests(mon, me, chest)
|
||||
items = me.listItems()
|
||||
item_array = {}
|
||||
for index, item in ipairs(items) do
|
||||
if not item.nbt then
|
||||
item_array[item.name] = item.amount
|
||||
if next(item.components) == nil then
|
||||
item_array[item.name] = item.count
|
||||
end
|
||||
end
|
||||
|
||||
@ -260,7 +260,7 @@ function scanWorkRequests(mon, me, chest)
|
||||
color = colors.blue
|
||||
if useME == 1 then
|
||||
if item_array[item] then
|
||||
provided = me.exportItemToPeripheral({name=item, count=needed}, chest)
|
||||
provided = me.exportItem({name=item, count=needed}, chest)
|
||||
end
|
||||
|
||||
color = colors.green
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user