api: use backported getiteminfo for all versions

This commit is contained in:
shagu
2020-01-06 11:14:11 +01:00
parent 4c59fab99c
commit 149339839d
3 changed files with 12 additions and 14 deletions
+8
View File
@@ -53,3 +53,11 @@ function hooksecurefunc(name, func, append)
_G[name] = pfUI.hooks[tostring(func)]["function"]
end
do -- GetItemInfo
local name, link, rarity, minlevel, itype, isubtype, stack
function GetItemInfo(item)
name, link, rarity, minlevel, itype, isubtype, stack = _G.GetItemInfo(item)
return name, link, rarity, nil, minlevel, itype, isubtype, stack
end
end