From 0355b3c6afc9530bc0dfeb7a14d07367720bd50a Mon Sep 17 00:00:00 2001 From: VMSolidus Date: Sun, 12 Jan 2025 19:47:20 -0500 Subject: [PATCH] Update HumanoidCharacterProfile.cs --- Content.Shared/Preferences/HumanoidCharacterProfile.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Shared/Preferences/HumanoidCharacterProfile.cs b/Content.Shared/Preferences/HumanoidCharacterProfile.cs index de009eb20cd..7b7cd5d122e 100644 --- a/Content.Shared/Preferences/HumanoidCharacterProfile.cs +++ b/Content.Shared/Preferences/HumanoidCharacterProfile.cs @@ -478,14 +478,17 @@ public void EnsureValid(ICommonSession session, IDependencyCollection collection var antags = AntagPreferences .Where(id => prototypeManager.TryIndex(id, out var antag) && antag.SetPreference) + .Distinct() .ToList(); var traits = TraitPreferences .Where(prototypeManager.HasIndex) + .Distinct() .ToList(); var loadouts = LoadoutPreferences .Where(l => prototypeManager.HasIndex(l.LoadoutName)) + .Distinct() .ToList(); Name = name;