This commit is contained in:
timewarrener 2025-05-02 22:42:27 -04:00
parent 9a8ccbb013
commit b48d95b6ab

View File

@ -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