diff --git a/GatheringTracker.toc b/GatheringTracker.toc index 15a8c8a..611463c 100644 --- a/GatheringTracker.toc +++ b/GatheringTracker.toc @@ -2,7 +2,7 @@ ## Title: Gathering Tracker ## Notes: Addon for tracking gathered items, supports solo players and groups ## Author: Noshei -## Version: 2.5.5 +## Version: 2.5.6 ## OptionalDeps: TradeSkillMaster, RECrystallize, Auctionator ## SavedVariables: GatheringTrackerDB ## AddonCompartmentFunc: GatheringTracker_OnAddonCompartmentClick diff --git a/Utilities.lua b/Utilities.lua index 8e20ad9..5e94f2e 100644 --- a/Utilities.lua +++ b/Utilities.lua @@ -270,7 +270,7 @@ function GT:GetItemPrice(itemID) return 0 end local itemID = tonumber(itemID) - local price = 0 + local price = nil if GT.priceSources["RECrystallize"] and GT.db.profile.General.tsmPrice == 10 then price = (RECrystallize_PriceCheckItemID(itemID) or 0) / 10000 @@ -278,7 +278,7 @@ function GT:GetItemPrice(itemID) if GT.priceSources["Auctionator"] and GT.db.profile.General.tsmPrice == 20 then price = (Auctionator.API.v1.GetAuctionPriceByItemID("GatheringTracker", itemID) or 0) / 10000 end - if GT.priceSources["TradeSkillMaster"] then + if GT.priceSources["TradeSkillMaster"] and price == nil then price = (TSM_API.GetCustomPriceValue(GT.TSM, "i:" .. itemID) or 0) / 10000 end return price