View Single Post
08-30-21, 04:14 AM   #7
xubo
A Murloc Raider
Join Date: Aug 2021
Posts: 6
1. I already had bugcatcher/bugsack installed and been using it a lot. No errors pop up when it misses data.
2. I've added the code below (has no effect on the outcome).
Lua Code:
  1. local EventFrame = CreateFrame('Frame')
  2. EventFrame:RegisterEvent('ADDON_LOADED')
  3. EventFrame:SetScript('OnEvent', function(self, event, ...)
  4.     if self[event] then
  5.         self[event](self, ...)
  6.     end
  7. end)
  8.  
  9. function EventFrame:ADDON_LOADED(name)
  10.     if name == "MCL" then
  11.         if not IsAddOnLoaded("Blizzard_Collections") then
  12.             UIParentLoadAddOn("Blizzard_Collections")
  13.             print("LOADING COLLECTIONS")
  14.         else
  15.             print("Already Loaded")
  16.         end
  17.         SLASH_MCL1 = "/mcl";
  18.         SlashCmdList.MCL = core.Config.Toggle;
  19.         core:Print("Welcome back", UnitName("player").."!");
  20.         -- remove event
  21.         self:UnregisterEvent('ADDON_LOADED')
  22.         self.ADDON_LOADED = nil
  23.     end
  24. end

Have I done that correctly? This has had no effect on the original issue.
  Reply With Quote