Don't recreate lag bar unnecessarily

This commit is contained in:
Parnic
2018-08-17 22:45:12 -05:00
parent 1591b36e89
commit a8f175fad4

View File

@ -394,7 +394,9 @@ end
function CastBar.prototype:CreateLagBar()
self.lagBar = self:BarFactory(self.lagBar, "LOW", "OVERLAY")
if self.lagBar == nil then
self.lagBar = self:BarFactory(self.lagBar, "LOW", "OVERLAY")
end
local r, g, b = self:GetColor("CastLag")
if (self.settings.backgroundToggle) then