Skip to content

Commit

Permalink
Fixed IsAddOnLoaded to use proper C_AddOns call
Browse files Browse the repository at this point in the history
  • Loading branch information
GovtGeek committed Nov 26, 2024
1 parent 598d9ad commit 2f10abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OutfitterItemStats.lua
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ Outfitter._PawnScaleStatMetaTable = {__index = Outfitter._PawnScaleStat}
-- Install Pawn scales
----------------------------------------

if IsAddOnLoaded("Pawn") then
if C_AddOns.IsAddOnLoaded("Pawn") then
table.insert(Outfitter.StatCategories, Outfitter.PawnScalesCategory)
else
Outfitter.EventLib:RegisterEvent("ADDON_LOADED", function (pEventID, pAddOnName)
Expand Down Expand Up @@ -564,7 +564,7 @@ Outfitter._WeightsWatcherStatMetaTable = {__index = Outfitter._WeightsWatcherSta
-- Install WeightsWatcher
----------------------------------------

if IsAddOnLoaded("WeightsWatcher") then
if C_AddOns.IsAddOnLoaded("WeightsWatcher") then
table.insert(Outfitter.StatCategories, Outfitter.WeightsWatcherCategory)
else
Outfitter.EventLib:RegisterEvent("ADDON_LOADED", function (pEventID, pAddOnName)
Expand Down

0 comments on commit 2f10abc

Please sign in to comment.