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