mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed custom cooldown bars not working quite right with the 'When ready' display mode. the update subscription query was returning a false positive because a block of code in one of the CD bar's parent classes had already subscribed for updates, but the CD bar wanted to use its own update function.
This commit is contained in:
@ -854,6 +854,7 @@ function IceCore.prototype:RequestUpdates(module, func)
|
||||
local count = 0
|
||||
for k,v in pairs(self.updatees) do
|
||||
count = count + 1
|
||||
break
|
||||
end
|
||||
|
||||
if (count == 0) then
|
||||
@ -869,8 +870,12 @@ function IceCore.prototype:RequestUpdates(module, func)
|
||||
end
|
||||
end
|
||||
|
||||
function IceCore.prototype:IsUpdateSubscribed(module)
|
||||
return self.updatees[module] ~= nil
|
||||
function IceCore.prototype:IsUpdateSubscribed(module, func)
|
||||
if func == nil then
|
||||
return self.updatees[module] ~= nil
|
||||
else
|
||||
return self.updatees[module] == func
|
||||
end
|
||||
end
|
||||
|
||||
function IceCore.prototype:EmptyUpdates()
|
||||
|
Reference in New Issue
Block a user