@@ -50,19 +50,17 @@ local ignoredItems = {
5050}
5151
5252local function IsPouch (container , slot )
53- local texture , count , locked , quality , readable , lootable , itemLink = GetContainerItemInfo (container , slot )
54- if itemLink == nil then
53+ local itemInfo = C_Container . GetContainerItemInfo (container , slot )
54+ if itemInfo == nil then
5555 return false
5656 end
5757
58- if lootable == false then
58+ if itemInfo [ " hasLoot " ] == false then
5959 return false
6060 end
6161
62- local itemId = GetContainerItemID (container , slot )
63-
6462 for _i , lockedItemId in ipairs (ignoredItems ) do
65- if lockedItemId == itemId then
63+ if lockedItemId == itemInfo [ " itemID " ] then
6664 return false
6765 end
6866 end
@@ -74,9 +72,8 @@ local function OpenNextPouch()
7472 -- print("Looking for pouches")
7573
7674 for container = BACKPACK_CONTAINER , NUM_BAG_SLOTS do
77- for slot = 1 , GetContainerNumSlots (container ) do
75+ for slot = 1 , C_Container . GetContainerNumSlots (container ) do
7876 if IsPouch (container , slot ) == true then
79- -- print("Opening ", itemLink)
8077 UseContainerItem (container , slot )
8178 C_Timer .After (delayBetweenSearches , OpenNextPouch )
8279 return
0 commit comments