fix: remove duplicates

This commit is contained in:
Anna 2024-02-18 11:44:00 -05:00
parent b5089d00e4
commit 8517a4bae4
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ public class ScreenshotMetadata {
var modDir = plugin.Penumbra.GetModDirectory();
var paths = plugin.Penumbra.GetPlayerResourcePaths();
var mods = plugin.Penumbra.GetMods();
var modsInUse = new List<PenumbraMod>();
var modsInUse = new HashSet<PenumbraMod>();
if (modDir != null && paths != null && mods != null) {
var baseUri = new Uri($"{modDir}/");
foreach (var dict in paths.Values) {
@ -162,7 +162,7 @@ public class ScreenshotMetadata {
Ward = ward,
Plot = plot,
VisibleCharacters = visible,
ModsInUse = [.. modsInUse],
ModsInUse = [.. modsInUse.OrderBy(mod => mod.Name)],
};
}
}