mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -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(...)
|
function CastBar.prototype:CVarUpdate(...)
|
||||||
self.useFixedLatency = self.moduleSettings.respectLagTolerance and GetCVar("reducedLagTolerance") == "1"
|
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
|
end
|
||||||
|
|
||||||
function CastBar.prototype:Disable(core)
|
function CastBar.prototype:Disable(core)
|
||||||
|
@ -45,7 +45,10 @@ end
|
|||||||
|
|
||||||
function GlobalCoolDown.prototype:CVarUpdate()
|
function GlobalCoolDown.prototype:CVarUpdate()
|
||||||
self.useFixedLatency = self.moduleSettings.respectLagTolerance and GetCVar("reducedLagTolerance") == "1"
|
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
|
end
|
||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
|
Reference in New Issue
Block a user