diff --git a/Content.Server/IdentityManagement/IdentitySystem.cs b/Content.Server/IdentityManagement/IdentitySystem.cs index f873273f80..131544e569 100644 --- a/Content.Server/IdentityManagement/IdentitySystem.cs +++ b/Content.Server/IdentityManagement/IdentitySystem.cs @@ -72,7 +72,7 @@ public sealed class IdentitySystem : SharedIdentitySystem /// /// Queues an identity update to the start of the next tick. /// - public void QueueIdentityUpdate(EntityUid uid) + public override void QueueIdentityUpdate(EntityUid uid) { _queuedIdentityUpdates.Add(uid); } diff --git a/Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs b/Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs index f7884e97c4..b31abbda32 100644 --- a/Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs +++ b/Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs @@ -39,6 +39,7 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem [Dependency] private readonly ISerializationManager _serManager = default!; [Dependency] private readonly MarkingManager _markingManager = default!; [Dependency] private readonly GrammarSystem _grammarSystem = default!; + [Dependency] private readonly SharedIdentitySystem _identity = default!; [ValidatePrototypeId] public const string DefaultSpecies = "Human"; @@ -161,6 +162,7 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem if (TryComp(target, out var grammar)) _grammarSystem.SetGender((target, grammar), sourceHumanoid.Gender); + _identity.QueueIdentityUpdate(target); Dirty(target, targetHumanoid); } diff --git a/Content.Shared/IdentityManagement/SharedIdentitySystem.cs b/Content.Shared/IdentityManagement/SharedIdentitySystem.cs index 6d6916df32..6b03dc3850 100644 --- a/Content.Shared/IdentityManagement/SharedIdentitySystem.cs +++ b/Content.Shared/IdentityManagement/SharedIdentitySystem.cs @@ -39,6 +39,11 @@ public abstract class SharedIdentitySystem : EntitySystem { ent.Comp.Enabled = !args.Mask.Comp.IsToggled; } + + /// + /// Queues an identity update to the start of the next tick. + /// + public virtual void QueueIdentityUpdate(EntityUid uid) { } } /// /// Gets called whenever an entity changes their identity.