From eda670d2aae782f5df86b926cf1530b1a711c00e Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 9 Jan 2023 18:04:03 -0300 Subject: [PATCH] load error on classic --- functions/boss.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/functions/boss.lua b/functions/boss.lua index 44176e53..46f3b454 100644 --- a/functions/boss.lua +++ b/functions/boss.lua @@ -396,6 +396,10 @@ do local bossInfoTable = {} --[bossId] = bossInfo local raidInfoTable = {} + if (not EncounterJournal_LoadUI) then + return bossIndexedTable, bossInfoTable, raidInfoTable + end + if (not EncounterJournal) then EncounterJournal_LoadUI() end @@ -540,6 +544,10 @@ do return end + if (not EncounterJournal_LoadUI) then + return + end + --todo generate encounter spells cache --delay the cache createation as it is not needed right away @@ -788,6 +796,9 @@ do --todo: should run one second after the player_login event or entering_world C_Timer.After(1, function() + if (not EncounterJournal_LoadUI) then + return + end createEJCache() end)