Make sure that vpResetTime is refreshed when the UI is reloaded
This commit is contained in:
parent
4262c0cdb6
commit
64af7e3bc2
1 changed files with 6 additions and 0 deletions
|
@ -215,6 +215,8 @@ function core:OnEnable()
|
||||||
|
|
||||||
-- Register events
|
-- Register events
|
||||||
if self.character.level == CURRENT_MAX_LEVEL then
|
if self.character.level == CURRENT_MAX_LEVEL then
|
||||||
|
self:RegisterEvent('PLAYER_ENTERING_WORLD')
|
||||||
|
|
||||||
self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST')
|
self:RegisterEvent('CALENDAR_UPDATE_EVENT_LIST')
|
||||||
|
|
||||||
self:RegisterEvent('LFG_UPDATE_RANDOM_INFO')
|
self:RegisterEvent('LFG_UPDATE_RANDOM_INFO')
|
||||||
|
@ -236,6 +238,10 @@ end
|
||||||
|
|
||||||
|
|
||||||
--[[ EVENTS ]]--
|
--[[ EVENTS ]]--
|
||||||
|
function core:PLAYER_ENTERING_WORLD()
|
||||||
|
self.vpResetTime = core:FindLockout(Z['Baradin Hold'])
|
||||||
|
end
|
||||||
|
|
||||||
function core:CALENDAR_UPDATE_EVENT_LIST()
|
function core:CALENDAR_UPDATE_EVENT_LIST()
|
||||||
self.vpResetTime = core:FindLockout(Z['Baradin Hold'])
|
self.vpResetTime = core:FindLockout(Z['Baradin Hold'])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue