From 59995900c3541bb0bc70c8e7e41a55234fb144f6 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 21 Dec 2019 09:13:32 +0100 Subject: [PATCH] panel: listen to tbc durability events --- modules/panel.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/panel.lua b/modules/panel.lua index 9ec86595..c24fe453 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -334,13 +334,7 @@ pfUI:RegisterModule("panel", "vanilla:tbc", function() widget:RegisterEvent("PLAYER_DEAD") widget:RegisterEvent("PLAYER_UNGHOST") widget:RegisterEvent("UNIT_INVENTORY_CHANGED") - - -- The following event is disabled as most servers flood this event - -- even on other peoples durability changes. Therefore the event - -- would run about 50 times per minute (depending on the population) - -- while being in AFK in a capital city. We hopefully might be able - -- to bring that back, once the most popular servers accept the fix. - -- widget:RegisterEvent("UPDATE_INVENTORY_ALERTS") + widget:RegisterEvent("UPDATE_INVENTORY_DURABILITY") widget.itemLines = {} widget.durability_slots = { 1, 3, 5, 6, 7, 8, 9, 10, 16, 17, 18 }