mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update bags
This commit is contained in:
@@ -279,6 +279,13 @@ local bagTypes = {
|
||||
}
|
||||
|
||||
function GetItemFamily(id)
|
||||
if not id then return end
|
||||
if type(id) == "table" or type(id) == "function" then return end
|
||||
|
||||
if type(id) == "string" then
|
||||
id = match(id, "item:(%d+)")
|
||||
end
|
||||
|
||||
local _, _, _, _, _, itemType = GetItemInfo(id)
|
||||
return bagTypes[itemType]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user