mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Fixed error in 7.2 where a cvar has been removed
This commit is contained in:
@ -358,7 +358,10 @@ end
|
||||
|
||||
function CastBar.prototype:CVarUpdate(...)
|
||||
self.useFixedLatency = self.moduleSettings.respectLagTolerance and GetCVar("reducedLagTolerance") == "1"
|
||||
self.fixedLatency = tonumber(GetCVar("maxSpellStartRecoveryoffset")) / 1000
|
||||
local recoveryOffset = GetCVar("maxSpellStartRecoveryoffset")
|
||||
if recoveryOffset ~= nil then
|
||||
self.fixedLatency = tonumber(recoveryOffset) / 1000
|
||||
end
|
||||
end
|
||||
|
||||
function CastBar.prototype:Disable(core)
|
||||
|
@ -45,7 +45,10 @@ end
|
||||
|
||||
function GlobalCoolDown.prototype:CVarUpdate()
|
||||
self.useFixedLatency = self.moduleSettings.respectLagTolerance and GetCVar("reducedLagTolerance") == "1"
|
||||
self.fixedLatency = tonumber(GetCVar("maxSpellStartRecoveryoffset")) / 1000.0
|
||||
local recoveryOffset = GetCVar("maxSpellStartRecoveryoffset")
|
||||
if recoveryOffset ~= nil then
|
||||
self.fixedLatency = tonumber(recoveryOffset) / 1000.0
|
||||
end
|
||||
end
|
||||
|
||||
-- OVERRIDE
|
||||
|
Reference in New Issue
Block a user