So the code I'm using for the ADDON_LOADED trigger is
Lua Code:
function core:init(event, name)
if (name ~= "MCL") then return end
start = core.Config.Toggle();
hide = core.Config.Toggle();
SLASH_MCL1 = "/mcl";
SlashCmdList.MCL = core.Config.Toggle;
core:Print("Welcome back", UnitName("player").."!");
end
local events = CreateFrame("Frame");
events:RegisterEvent("ADDON_LOADED");
events:SetScript("OnEvent", core.init);
My mountList, SectionNames are tables provided in a different file and they look like this.
Lua Code:
mountList = {
SL = {
name = "SL",
Achievement = {
name = "Achievement",
mounts = {186654, 186637, 184183, 182596, 186653, 184166, 186655, 182717, 187525},
mountID = {}
},....
sectionNames = {
Classic = {
name = "Classic",
category = {"Reputation", "Dungeon Drop", "Raid Drop"},
},...
Yes I would say that is the table that is not always fully traversed. I've just tried adding a LoadAddon line for Blizzard_Collections inside the core.init function
Lua Code:
SLASH_MCL1 = "/mcl";
LoadAddOn("Blizzard_Collections")
SlashCmdList.MCL = core.Config.Toggle;
core:Print("Welcome back", UnitName("player").."!");
Still the same result. Attached is the addon, if anyone would take a look I would be appreciated.