mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
Use GetInventoryItemID instead of parsing link
This commit is contained in:
@@ -152,9 +152,8 @@ pfUI:RegisterSkin("Inspect", function ()
|
|||||||
|
|
||||||
hooksecurefunc("InspectPaperDollItemSlotButton_Update", function(button)
|
hooksecurefunc("InspectPaperDollItemSlotButton_Update", function(button)
|
||||||
local bid = button:GetID()
|
local bid = button:GetID()
|
||||||
local link = GetInventoryItemLink(InspectFrame.unit, bid)
|
local itemID = GetInventoryItemID(InspectFrame.unit, bid)
|
||||||
if link then
|
if itemID then
|
||||||
local _,_,itemID = string.find(link, 'item:(%d+)')
|
|
||||||
cache[bid] = cache[bid] or {}
|
cache[bid] = cache[bid] or {}
|
||||||
cache[bid]["id"] = itemID
|
cache[bid]["id"] = itemID
|
||||||
cache[bid]["tex"] = GetInventoryItemTexture(InspectFrame.unit, button:GetID())
|
cache[bid]["tex"] = GetInventoryItemTexture(InspectFrame.unit, button:GetID())
|
||||||
|
|||||||
Reference in New Issue
Block a user