mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- plugged a hole in the logic from r710 that could potentially cause a player to lose their lacerate/sunder/maelstrom module without creating a replacement custom counter if they never changed anything in the configuration for it (there would be no entry in the SavedVariables)
This commit is contained in:
11
IceCore.lua
11
IceCore.lua
@ -143,6 +143,17 @@ function IceCore.prototype:CheckDisplayUpdateMessage()
|
||||
|
||||
StaticPopup_Show("ICEHUD_UPDATE_PERIOD_MATTERS")
|
||||
end
|
||||
if self.accountSettings.lastRunVersion < 710 then
|
||||
if self.settings.modules["MaelstromCount"] == nil then
|
||||
self.settings.modules["MaelstromCount"] = {}
|
||||
end
|
||||
if self.settings.modules["SunderCount"] == nil then
|
||||
self.settings.modules["SunderCount"] = {}
|
||||
end
|
||||
if self.settings.modules["LacerateCount"] == nil then
|
||||
self.settings.modules["LacerateCount"] = {}
|
||||
end
|
||||
end
|
||||
self.accountSettings.lastRunVersion = thisVersion
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user