Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Commit 5d26a38

Browse files
fix clone appearance (space-wizards#37130)
1 parent 4ba8945 commit 5d26a38

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Content.Server/IdentityManagement/IdentitySystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private void OnMapInit(EntityUid uid, IdentityComponent component, MapInitEvent
7272
/// <summary>
7373
/// Queues an identity update to the start of the next tick.
7474
/// </summary>
75-
public void QueueIdentityUpdate(EntityUid uid)
75+
public override void QueueIdentityUpdate(EntityUid uid)
7676
{
7777
_queuedIdentityUpdates.Add(uid);
7878
}

Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem
3939
[Dependency] private readonly ISerializationManager _serManager = default!;
4040
[Dependency] private readonly MarkingManager _markingManager = default!;
4141
[Dependency] private readonly GrammarSystem _grammarSystem = default!;
42+
[Dependency] private readonly SharedIdentitySystem _identity = default!;
4243

4344
[ValidatePrototypeId<SpeciesPrototype>]
4445
public const string DefaultSpecies = "Human";
@@ -161,6 +162,7 @@ public void CloneAppearance(EntityUid source, EntityUid target, HumanoidAppearan
161162
if (TryComp<GrammarComponent>(target, out var grammar))
162163
_grammarSystem.SetGender((target, grammar), sourceHumanoid.Gender);
163164

165+
_identity.QueueIdentityUpdate(target);
164166
Dirty(target, targetHumanoid);
165167
}
166168

Content.Shared/IdentityManagement/SharedIdentitySystem.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ private void OnMaskToggled(Entity<IdentityBlockerComponent> ent, ref ItemMaskTog
3939
{
4040
ent.Comp.Enabled = !args.Mask.Comp.IsToggled;
4141
}
42+
43+
/// <summary>
44+
/// Queues an identity update to the start of the next tick.
45+
/// </summary>
46+
public virtual void QueueIdentityUpdate(EntityUid uid) { }
4247
}
4348
/// <summary>
4449
/// Gets called whenever an entity changes their identity.

0 commit comments

Comments
 (0)