mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- missed a 'local' on a table in IceCore. whoops.
This commit is contained in:
@ -143,7 +143,8 @@ function IceCore.prototype:Enable(userToggle)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- go through the list of loaded elements that don't have associated settings and dump them
|
-- go through the list of loaded elements that don't have associated settings and dump them
|
||||||
toRemove = {}
|
do
|
||||||
|
local toRemove = {}
|
||||||
for i = #self.elements, 1, -1 do
|
for i = #self.elements, 1, -1 do
|
||||||
if not self.settings.modules[self.elements[i]:GetElementName()] then
|
if not self.settings.modules[self.elements[i]:GetElementName()] then
|
||||||
toRemove[#toRemove + 1] = i
|
toRemove[#toRemove + 1] = i
|
||||||
@ -152,6 +153,7 @@ function IceCore.prototype:Enable(userToggle)
|
|||||||
for i=1,#toRemove do
|
for i=1,#toRemove do
|
||||||
table.remove(self.elements, toRemove[i])
|
table.remove(self.elements, toRemove[i])
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
for k,v in pairs(self.settings.modules) do
|
for k,v in pairs(self.settings.modules) do
|
||||||
if self.settings.modules[k].customBarType == "Bar" and IceCustomBar ~= nil then
|
if self.settings.modules[k].customBarType == "Bar" and IceCustomBar ~= nil then
|
||||||
|
Reference in New Issue
Block a user