Skip to content

Commit 43cb728

Browse files
committed
Retail: Adjust recording of warband bank content updates when crafting
1 parent c8932de commit 43cb728

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tracking/BagCache.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,11 @@ function SyndicatorBagCacheMixin:OnEvent(eventName, ...)
129129

130130
-- Guessing that these events may be fired when a new warband tab is purchased
131131
elseif eventName == "BANK_TABS_CHANGED" or eventName == "PLAYER_ACCOUNT_BANK_TAB_SLOTS_CHANGED" then
132-
if self.bankOpen or time() - self.craftingTime < craftingItemUpdateDelay then
132+
if (self.bankOpen or time() - self.craftingTime < craftingItemUpdateDelay) and C_PlayerInfo.HasAccountInventoryLock() then
133133
self:ScanWarbandSlots()
134-
for bagID in pairs(warbandBags) do
135-
self.pending.warband[bagID] = true
134+
local tab = ...
135+
if tab then
136+
self.pending.warband[Syndicator.Constants.AllWarbandIndexes[tab]] = true
136137
end
137138
self:QueueCaching()
138139
end

0 commit comments

Comments
 (0)