From d2d73cbb0030735aa94956cf1c6158f968f450b5 Mon Sep 17 00:00:00 2001 From: Bluephobia Date: Thu, 19 Jan 2023 11:47:36 +0100 Subject: [PATCH] Fixed auto remove items feature Workaround for BAG_UPDATE_DELAYED event not firing in 3.4.1 --- src/Master.lua | 8 ++++++-- src/NotaLoot.toc | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Master.lua b/src/Master.lua index a3368cf..4d547e6 100644 --- a/src/Master.lua +++ b/src/Master.lua @@ -54,8 +54,12 @@ function Master:Create() NotaLoot:RegisterEvent("TRADE_SHOW", function() master:OnTradeOpened() end) - NotaLoot:RegisterEvent("BAG_UPDATE_DELAYED", function() - master:OnInventoryUpdate() + -- This event is no longer fired in 3.4.1 - workaround below + -- NotaLoot:RegisterEvent("BAG_UPDATE_DELAYED", function() + -- master:OnInventoryUpdate() + -- end) + NotaLoot:RegisterEvent("BAG_UPDATE", function() + C_Timer.After(0.001, function() master:OnInventoryUpdate() end) end) NotaLoot:RegisterEvent("CHAT_MSG_LOOT", function(_, ...) master:OnLootMessage(...) diff --git a/src/NotaLoot.toc b/src/NotaLoot.toc index c36d78f..c424c69 100644 --- a/src/NotaLoot.toc +++ b/src/NotaLoot.toc @@ -2,7 +2,7 @@ ## Title: Nota Loot ## Notes: Loot distribution helper developed for nota ## Author: Bluephobia -## Version: 3.3.0 +## Version: 3.3.1 ## SavedVariables: NotaLootPrefs embeds.xml