Add files via upload

This commit is contained in:
totalllyswede
2026-02-14 07:55:25 -08:00
committed by GitHub
parent bceec38bac
commit 635a492f67
+12
View File
@@ -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)