From 201a77ccbd99c9491600b34899c19d247a094f37 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Fri, 29 May 2026 00:31:53 -0500 Subject: [PATCH] IsContainerItemOpenable will now tell us if we can actually open the item --- modules/bags.lua | 3 ++- pfUI.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/bags.lua b/modules/bags.lua index 21e467e1..85146c4f 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -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) diff --git a/pfUI.lua b/pfUI.lua index 9a97a379..f78929b5 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -26,7 +26,7 @@ pfUI.bootup = true -- ClassicAPI dependency check. -- pfUI relies pervasively on the modern C_* / SuperWoW / nameplate / focus -- API surface that ClassicAPI polyfills, so presence is required. -local PFUI_CLASSIC_API_MIN = 10201 -- v1.2.0 (X*10000 + Y*100 + Z) +local PFUI_CLASSIC_API_MIN = 10202 -- v1.2.2 (X*10000 + Y*100 + Z) if not CLASSIC_API_VERSION or CLASSIC_API_VERSION < PFUI_CLASSIC_API_MIN then pfUI.disabled = true