Advertisement
Guest User

Untitled

a guest
Jun 26th, 2015
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.05 KB | None | 0 0
  1. ---
  2. Libs/LibExtraTip/LibExtraTip.lua | 7 ++++++-
  3.  1 file changed, 6 insertions(+), 1 deletion(-)
  4.  
  5. diff --git a/Libs/LibExtraTip/LibExtraTip.lua b/Libs/LibExtraTip/LibExtraTip.lua
  6. index f31f2a3..87227f9 100644
  7. --- a/Libs/LibExtraTip/LibExtraTip.lua
  8. +++ b/Libs/LibExtraTip/LibExtraTip.lua
  9. @@ -127,7 +127,12 @@ local function OnTooltipSetItem(tooltip)
  10.         if self.sortedCallbacks and #self.sortedCallbacks > 0 then
  11.                 tooltip:Show()
  12.  
  13. -               local _,item = tooltip:GetItem()
  14. +               local name, item = tooltip:GetItem()
  15. +               -- Blizzard broke :GetItem() in 6.2. For some items, it leaves out the itemId field completely. So, we'll detect and fix the bug...
  16. +               local itemID = tonumber(strmatch(item, ":(%d+):") or "") or 0
  17. +               if reg.additional.link and itemID == 0 and name == "" then
  18. +                       item = reg.additional.link
  19. +               end
  20.                 -- For generated tooltips
  21.                 if not item and reg.item then item = reg.item end
  22.  
  23. --
  24. 1.8.1.msysgit.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement