Skip to content

Commit

Permalink
Update bag cache when a soulbound tradeable item expires
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jul 19, 2024
1 parent 6a3a34e commit 5bb4dee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion LootReserve.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5bb4dee

Please sign in to comment.