Clarify Vendor Values cache fallback
This commit is contained in:
@@ -3303,9 +3303,9 @@ ShaguTweaks.SellValueDB = data
|
|||||||
local function GetVendorPrice(id)
|
local function GetVendorPrice(id)
|
||||||
if not id then return end
|
if not id then return end
|
||||||
|
|
||||||
-- ClassicAPI is authoritative when the item is cached. Its getter warms an
|
-- ClassicAPI is authoritative when the item is cached. Its getter also warms
|
||||||
-- uncached item in the background, so a later GET_ITEM_INFO_RECEIVED can
|
-- an uncached item in the background; the generated database below keeps the
|
||||||
-- refresh the currently visible tooltip without any permanent polling.
|
-- first tooltip immediate while that cache fill completes.
|
||||||
local price = API and API.GetItemSellPriceByID
|
local price = API and API.GetItemSellPriceByID
|
||||||
and API.GetItemSellPriceByID(id)
|
and API.GetItemSellPriceByID(id)
|
||||||
if price ~= nil then
|
if price ~= nil then
|
||||||
|
|||||||
Reference in New Issue
Block a user