Skip to content

Commit

Permalink
Fix Auctionator plugin enabled but Auctionator addon disabled error (…
Browse files Browse the repository at this point in the history
…issue #103)
  • Loading branch information
b-morgan committed Sep 28, 2024
1 parent cdc304f commit 71cd69b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Plugins/Auctionator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ function plugin.GetExtraText(skill, recipe)
local label = ""
local extra_text = ""
if not recipe then return end
if not Auctionator then return end
local itemID = recipe.itemID
--
-- Check for Enchanting.
Expand Down Expand Up @@ -943,7 +944,7 @@ function plugin.GetExtraText(skill, recipe)
for _, quality in pairs(recipe.qualityIDs) do
outputItemInfo = C_TradeSkillUI.GetRecipeOutputItemData(recipe.spellID, {}, nil, quality)
if outputItemInfo and outputItemInfo.hyperlink then
age = Auctionator.API.v1.GetAuctionAgeByItemLink and Auctionator.API.v1.GetAuctionAgeByItemLink(addonName, outputItemInfo.hyperlink)
age = Auctionator.API.v1.GetAuctionAgeByItemLink(addonName, outputItemInfo.hyperlink)
if age and age < 2 then
price = Auctionator.API.v1.GetAuctionPriceByItemLink(addonName, outputItemInfo.hyperlink)
buyout = (price or 0) * recipe.numMade
Expand Down

0 comments on commit 71cd69b

Please sign in to comment.