From 0c998fb285ae23aae8237deb2b9f98bcd7524b1f Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 2 Oct 2024 12:01:54 -0300 Subject: [PATCH] Fixing 'CurrentContent' (a nil value) error --- boot.lua | 4 ++-- core/parser.lua | 13 +++++++++++-- startup.lua | 4 ++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/boot.lua b/boot.lua index c58bc5c66..278c579bb 100644 --- a/boot.lua +++ b/boot.lua @@ -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 diff --git a/core/parser.lua b/core/parser.lua index e59a2d480..ed7c52066 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -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 diff --git a/startup.lua b/startup.lua index 0d68c7699..80e0671e8 100644 --- a/startup.lua +++ b/startup.lua @@ -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)