panel: fix wrong event in exp module

This commit is contained in:
shagu
2018-08-09 20:12:32 +02:00
parent 15a1dfa2e6
commit 059e3c4cc7
+1 -1
View File
@@ -164,7 +164,7 @@ pfUI:RegisterModule("panel", function()
do -- XP & Kills To Level
local widget = CreateFrame("Frame", "pfPanelWidgetXP", UIParent)
widget:RegisterEvent("PLAYER_ENTERING_WORLD")
widget:RegisterEvent("PLAYER_MONEY")
widget:RegisterEvent("PLAYER_XP_UPDATE")
widget:SetScript("OnEvent", function()
if UnitLevel("player") ~= 60 then
curexp = UnitXP("player")