cleanup Libs

This commit is contained in:
Pinya
2018-07-18 15:11:20 +03:00
parent 8b44916c87
commit 8d19a3f345
12 changed files with 29 additions and 45 deletions
@@ -88,7 +88,6 @@ do
end
Unusable[class] = nil
subs = nil
end
Lib.unusable = Unusable
@@ -97,9 +96,9 @@ end
--[[ API ]]--
function Lib:IsItemUnusable(arg1)
if arg1 then
local subclass, _, slot = select(7, GetItemInfo(arg1))
function Lib:IsItemUnusable(item)
if item then
local subclass, _, slot = select(7, GetItemInfo(item))
return Lib:IsClassUnusable(subclass, slot)
end
end