From 5bb4deece7f12cac69bd159fba9176f0698b3ac9 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Fri, 19 Jul 2024 17:00:33 -0400 Subject: [PATCH] Update bag cache when a soulbound tradeable item expires --- LootReserve.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LootReserve.lua b/LootReserve.lua index be863c0..2cd29ce 100644 --- a/LootReserve.lua +++ b/LootReserve.lua @@ -313,7 +313,7 @@ function LootReserve:GetContainerItemInfo(bag, slot) end function LootReserve:GetContainerNumSlots(bag) - if C_Container and C_Container.PickupContainerItem then + if C_Container and C_Container.GetContainerNumSlots then return C_Container.GetContainerNumSlots(bag); else return GetContainerNumSlots(bag); @@ -821,6 +821,10 @@ local function CheckBagCache(self) LootReserve:WipeBagCache(); C_Timer.After(0, function() LootReserve:WipeBagCache(); end); end); + LootReserve:RegisterEvent("MERCHANT_CONFIRM_TRADE_TIMER_REMOVAL", function() + LootReserve:WipeBagCache(); + C_Timer.After(0, function() LootReserve:WipeBagCache(); end); + end); self:RegisterEvent("ITEM_LOCK_CHANGED", function(bag, slot) if not slot then return; end if self.BagCache then