]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix clone appearance (#37130)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Sat, 3 May 2025 01:26:12 +0000 (03:26 +0200)
committerGitHub <noreply@github.com>
Sat, 3 May 2025 01:26:12 +0000 (21:26 -0400)
Content.Server/IdentityManagement/IdentitySystem.cs
Content.Shared/Humanoid/SharedHumanoidAppearanceSystem.cs
Content.Shared/IdentityManagement/SharedIdentitySystem.cs

index f873273f801b55075e0b39d502c78f8bc11d7f1d..131544e569f81e4cbb5449088cc1373a4abee711 100644 (file)
@@ -72,7 +72,7 @@ public sealed class IdentitySystem : SharedIdentitySystem
     /// <summary>
     ///     Queues an identity update to the start of the next tick.
     /// </summary>
-    public void QueueIdentityUpdate(EntityUid uid)
+    public override void QueueIdentityUpdate(EntityUid uid)
     {
         _queuedIdentityUpdates.Add(uid);
     }
index f7884e97c4d32080b1bc9becda204b13c902e992..b31abbda32143d369b1ea036615901f94f0453aa 100644 (file)
@@ -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<SpeciesPrototype>]
     public const string DefaultSpecies = "Human";
@@ -161,6 +162,7 @@ public abstract class SharedHumanoidAppearanceSystem : EntitySystem
         if (TryComp<GrammarComponent>(target, out var grammar))
             _grammarSystem.SetGender((target, grammar), sourceHumanoid.Gender);
 
+        _identity.QueueIdentityUpdate(target);
         Dirty(target, targetHumanoid);
     }
 
index 6d6916df32f2a84b3ca34172d6c4f2230a89ef40..6b03dc3850220b66abe922d432313730127eb4bc 100644 (file)
@@ -39,6 +39,11 @@ public abstract class SharedIdentitySystem : EntitySystem
     {
         ent.Comp.Enabled = !args.Mask.Comp.IsToggled;
     }
+
+    /// <summary>
+    /// Queues an identity update to the start of the next tick.
+    /// </summary>
+    public virtual void QueueIdentityUpdate(EntityUid uid) { }
 }
 /// <summary>
 ///     Gets called whenever an entity changes their identity.