Skip to content

Commit

Permalink
Return to using BAG_UPDATE_DELAYED
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Jul 8, 2024
1 parent abd6ec2 commit 6dccea4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ItemConditions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ local function IsItemUsableByMe(itemID)
LootReserve:RegisterEvent("QUEST_ACCEPTED", "QUEST_TURNED_IN", "CHAT_MSG_SKILL", function()
usableCache = { };
end);
LootReserve:RegisterEvent("BAG_UPDATE", function() -- Return to hooking BAG_UPDATED_DELAYED when blizzard fixes it
LootReserve:RegisterEvent("BAG_UPDATE_DELAYED", function()
usableCache = { };
C_Timer.After(0, function() usableCache = { }; end);
end);
Expand Down
2 changes: 1 addition & 1 deletion LootReserve.lua
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ local bagCacheHooked = nil;
local function CheckBagCache(self)
if not bagCacheHooked then
bagCacheHooked = true;
LootReserve:RegisterEvent("BAG_UPDATE", function() -- Return to hooking BAG_UPDATED_DELAYED when blizzard fixes it
LootReserve:RegisterEvent("BAG_UPDATE_DELAYED", function()
LootReserve:WipeBagCache();
C_Timer.After(0, function() LootReserve:WipeBagCache(); end);
end);
Expand Down
2 changes: 1 addition & 1 deletion Windows/ServerWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ function LootReserve.Server:OnWindowLoad(window)
LootReserve.Server:UpdateRollList();
end);
local tempBagFix;
LootReserve:RegisterEvent("BAG_UPDATE", function() -- Return to hooking BAG_UPDATED_DELAYED when blizzard fixes it
LootReserve:RegisterEvent("BAG_UPDATE_DELAYED", function()
if not tempBagFix then
tempBagFix = C_Timer.NewTicker(0, function()
LootReserve:WipeBagCache();
Expand Down

0 comments on commit 6dccea4

Please sign in to comment.