From 6dccea466c8b475a20432eb40a4b72beb57a809d Mon Sep 17 00:00:00 2001 From: Anonomit Date: Sun, 7 Jul 2024 22:43:51 -0400 Subject: [PATCH] Return to using BAG_UPDATE_DELAYED --- ItemConditions.lua | 2 +- LootReserve.lua | 2 +- Windows/ServerWindow.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ItemConditions.lua b/ItemConditions.lua index 8851073..761e659 100644 --- a/ItemConditions.lua +++ b/ItemConditions.lua @@ -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); diff --git a/LootReserve.lua b/LootReserve.lua index 5b9102a..e017809 100644 --- a/LootReserve.lua +++ b/LootReserve.lua @@ -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); diff --git a/Windows/ServerWindow.lua b/Windows/ServerWindow.lua index eceaabe..aa88a33 100644 --- a/Windows/ServerWindow.lua +++ b/Windows/ServerWindow.lua @@ -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();