- better fix to make sure modules always re-register for updates if they need to when they're shown

This commit is contained in:
Parnic
2010-10-30 15:48:54 +00:00
parent dd02a60213
commit fa74303411
3 changed files with 8 additions and 3 deletions

View File

@ -152,6 +152,11 @@ function PlayerMana.prototype:SetupOnUpdate(enable)
end
end
function PlayerMana.prototype:OnShow()
if not self:IsFull(self.CurrScale) then
self:SetupOnUpdate(true)
end
end
function PlayerMana.prototype:EnteringVehicle(event, unit, arg2)
if (self.unit == "player" and IceHUD:ShouldSwapToVehicle(unit, arg2)) then