Add files via upload
This commit is contained in:
@@ -603,12 +603,24 @@ function GearSetTooltips:RefreshSettingsFrame()
|
|||||||
if table.getn(outfits) > 0 then
|
if table.getn(outfits) > 0 then
|
||||||
for _, outfit in ipairs(outfits) do
|
for _, outfit in ipairs(outfits) do
|
||||||
if outfit.Name and outfit.Items then
|
if outfit.Name and outfit.Items then
|
||||||
|
-- Check if the outfit actually has items
|
||||||
|
local hasItems = false
|
||||||
|
for slot, item in pairs(outfit.Items) do
|
||||||
|
if item.Code and tonumber(item.Code) and tonumber(item.Code) > 0 then
|
||||||
|
hasItems = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Only add to list if it has items
|
||||||
|
if hasItems then
|
||||||
table.insert(setList, {name = outfit.Name, addon = "Outfitter"})
|
table.insert(setList, {name = outfit.Name, addon = "Outfitter"})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Sort alphabetically by name
|
-- Sort alphabetically by name
|
||||||
table.sort(setList, function(a, b) return a.name < b.name end)
|
table.sort(setList, function(a, b) return a.name < b.name end)
|
||||||
|
|||||||
Reference in New Issue
Block a user