fix: remove duplicates
This commit is contained in:
parent
b5089d00e4
commit
8517a4bae4
|
@ -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)],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue