From b92175c5622d49d8a1db7c93a3e1ff4d5e5dff9d Mon Sep 17 00:00:00 2001 From: och-och <80923370+och-och@users.noreply.github.com> Date: Fri, 16 Sep 2022 17:13:46 +0300 Subject: [PATCH] Fix appearance being lost on cloning (#11250) --- Content.Server/Cloning/CloningSystem.cs | 3 +-- .../Systems/SharedHumanoidAppearanceSystem.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Server/Cloning/CloningSystem.cs b/Content.Server/Cloning/CloningSystem.cs index e8c01ca3de..99e3e94e7a 100644 --- a/Content.Server/Cloning/CloningSystem.cs +++ b/Content.Server/Cloning/CloningSystem.cs @@ -220,8 +220,7 @@ namespace Content.Server.Cloning.Systems // end of genetic damage checks var mob = Spawn(speciesPrototype.Prototype, Transform(clonePod.Owner).MapPosition); - _appearanceSystem.UpdateAppearance(mob, humanoid.Appearance); - _appearanceSystem.UpdateSexGender(mob, humanoid.Sex, humanoid.Gender); + _appearanceSystem.UpdateAppearance(mob, humanoid.Appearance, humanoid.Sex, humanoid.Gender, humanoid.Species, humanoid.Age); MetaData(mob).EntityName = MetaData(bodyToClone).EntityName; diff --git a/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs b/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs index 449cea6c5d..bc482cd47a 100644 --- a/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs +++ b/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs @@ -36,7 +36,7 @@ namespace Content.Shared.CharacterAppearance.Systems component.Dirty(); } - private void UpdateAppearance(EntityUid uid, HumanoidCharacterAppearance appearance, Sex sex, Gender gender, string species, int age, HumanoidAppearanceComponent? component = null) + public void UpdateAppearance(EntityUid uid, HumanoidCharacterAppearance appearance, Sex sex, Gender gender, string species, int age, HumanoidAppearanceComponent? component = null) { if (!Resolve(uid, ref component)) return;