From b48d95b6abdd0900ad407c0506cc7712a331b620 Mon Sep 17 00:00:00 2001 From: timewarrener Date: Fri, 2 May 2025 22:42:27 -0400 Subject: [PATCH] update --- MEWarehouse.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MEWarehouse.lua b/MEWarehouse.lua index 82b36d3..501874e 100644 --- a/MEWarehouse.lua +++ b/MEWarehouse.lua @@ -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