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:
10
IceHUD.lua
10
IceHUD.lua
@ -805,3 +805,13 @@ function IceHUD:OnProfileEnable(oldName, oldData)
|
||||
self.IceCore:SetModuleDatabases()
|
||||
self.IceCore:Enable()
|
||||
end
|
||||
|
||||
function IceHUD:Clamp(value, min, max)
|
||||
if value < min then
|
||||
value = min
|
||||
elseif value > max then
|
||||
value = max
|
||||
end
|
||||
|
||||
return value
|
||||
end
|
||||
|
Reference in New Issue
Block a user