Skip to content

Commit

Permalink
Fixing 'CurrentContent' (a nil value) error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Oct 2, 2024
1 parent 3e92115 commit 0c998fb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
local addonName, Details222 = ...
local version, build, date, tvs = GetBuildInfo()

Details.build_counter = 13090
Details.alpha_build_counter = 13090 --if this is higher than the regular counter, use it instead
Details.build_counter = 13096
Details.alpha_build_counter = 13096 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
Expand Down
13 changes: 11 additions & 2 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5462,8 +5462,17 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1

--if the current raid is current tier raid, pre-load the storage database
if (zoneType == "raid") then
if (Details:IsZoneIdFromCurrentExpansion(zoneMapID)) then
Details.ScheduleLoadStorage()
if (not Details222.EJCache.CacheCreated) then
--this is running right after the player login, wait a few seconds for the cache to be created
C_Timer.After(5, function()
if (Details:IsZoneIdFromCurrentExpansion(zoneMapID)) then
Details.ScheduleLoadStorage()
end
end)
else
if (Details:IsZoneIdFromCurrentExpansion(zoneMapID)) then
Details.ScheduleLoadStorage()
end
end
end

Expand Down
4 changes: 4 additions & 0 deletions startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,10 @@ function Details222.StartUp.StartMeUp()

--check is this is the first run of this version
if (Details.is_version_first_run) then
if (Details.build_counter == 13096) then
Details.mythic_plus.autoclose_time = 90
end

local lowerInstanceId = Details:GetLowerInstanceNumber()
if (lowerInstanceId) then
lowerInstanceId = Details:GetInstance(lowerInstanceId)
Expand Down

0 comments on commit 0c998fb

Please sign in to comment.