panel: listen to tbc durability events

This commit is contained in:
shagu
2019-12-21 09:13:32 +01:00
parent 3517ebd836
commit 59995900c3
+1 -7
View File
@@ -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 }