Skip to content

Commit

Permalink
Update C_AddOns API
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Jul 24, 2024
1 parent a235a43 commit 40d8185
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ read_globals = {
"LibStub",

-- API functions
"C_AddOns",
"C_Map",
"C_MapExplorationInfo",
"CreateFrame",
"GetBuildInfo",
"GetCursorPosition",
"GetCVarBool",
"InCombatLockdown",
"IsAddOnLoaded",
"IsPlayerMoving",
"PlaySound",
"ReloadUI",
Expand Down
2 changes: 1 addition & 1 deletion BattleMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function BattleMap:OnInitialize()
end

function BattleMap:OnEnable()
if not IsAddOnLoaded("Blizzard_BattlefieldMinimap") then
if not C_AddOns.IsAddOnLoaded("Blizzard_BattlefieldMinimap") then
self:RegisterEvent("ADDON_LOADED", function(event, addon)
if addon == "Blizzard_BattlefieldMinimap" then
BattleMap:UnregisterEvent("ADDON_LOADED")
Expand Down
2 changes: 1 addition & 1 deletion GroupIcons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function GroupIcons:OnInitialize()
end

function GroupIcons:OnEnable()
if not IsAddOnLoaded("Blizzard_BattlefieldMinimap") then
if not C_AddOns.IsAddOnLoaded("Blizzard_BattlefieldMinimap") then
self:RegisterEvent("ADDON_LOADED", function(event, addon)
if addon == "Blizzard_BattlefieldMinimap" then
GroupIcons:UnregisterEvent("ADDON_LOADED")
Expand Down

0 comments on commit 40d8185

Please sign in to comment.