- added code to buff/debuff watchers and cooldown watchers to prevent them from sometimes getting stuck (not updating/animating)

This commit is contained in:
Parnic
2011-12-06 03:51:22 +00:00
parent 6e4b194900
commit d7e4bfbee2
3 changed files with 11 additions and 1 deletions

View File

@ -848,7 +848,11 @@ end
function IceCore.prototype:RequestUpdates(module, func)
if self.updatees[module] ~= func then
self.updatees[module] = func
-- Parnic: this prevents modules who are handling their own updates (as opposed to relying on IceBarElement)
-- from having their update request yanked out from under them.
if func ~= nil or not module.handlesOwnUpdates then
self.updatees[module] = func
end
end
local count = 0