Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- Libs/LibExtraTip/LibExtraTip.lua | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
- diff --git a/Libs/LibExtraTip/LibExtraTip.lua b/Libs/LibExtraTip/LibExtraTip.lua
- index f31f2a3..87227f9 100644
- --- a/Libs/LibExtraTip/LibExtraTip.lua
- +++ b/Libs/LibExtraTip/LibExtraTip.lua
- @@ -127,7 +127,12 @@ local function OnTooltipSetItem(tooltip)
- if self.sortedCallbacks and #self.sortedCallbacks > 0 then
- tooltip:Show()
- - local _,item = tooltip:GetItem()
- + local name, item = tooltip:GetItem()
- + -- Blizzard broke :GetItem() in 6.2. For some items, it leaves out the itemId field completely. So, we'll detect and fix the bug...
- + local itemID = tonumber(strmatch(item, ":(%d+):") or "") or 0
- + if reg.additional.link and itemID == 0 and name == "" then
- + item = reg.additional.link
- + end
- -- For generated tooltips
- if not item and reg.item then item = reg.item end
- --
- 1.8.1.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement