IsContainerItemOpenable will now tell us if we can actually open the item

This commit is contained in:
Brues
2026-05-29 00:31:53 -05:00
parent b8da28ebac
commit 201a77ccbd
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -285,7 +285,8 @@ pfUI:RegisterModule("bags", function ()
local bagsize = GetContainerNumSlots(bag)
if bag == -2 and pfUI.bag.showKeyring == true then bagsize = GetKeyRingSize() end
for slot=1, bagsize do
if C_Container.IsContainerItemOpenable(bag, slot) then
local _, canOpen = C_Container.IsContainerItemOpenable(bag, slot)
if canOpen then
openable.bag = bag
openable.slot = slot
openable.icon = GetContainerItemInfo(bag, slot)