mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added some protection against error messages that were popping up related to SetTexCoord
- added some protection against a nil access in the player's cast bar under certain circumstances
This commit is contained in:
@ -271,7 +271,7 @@ function IHUD_Threat.prototype:Update(unit)
|
||||
if ( self.aggroBarMulti ~= threatMulti ) then
|
||||
self.aggroBarMulti = threatMulti
|
||||
|
||||
local pos = 1 - (1 / threatMulti)
|
||||
local pos = IceHUD:Clamp(1 - (1 / threatMulti), 0, 1)
|
||||
local y = self.settings.barHeight - ( pos * self.settings.barHeight )
|
||||
|
||||
if ( self.moduleSettings.side == IceCore.Side.Left ) then
|
||||
|
Reference in New Issue
Block a user