Fix appearance being lost on cloning (#11250)

This commit is contained in:
och-och
2022-09-16 17:13:46 +03:00
committed by GitHub
parent 8d39668f16
commit b92175c562
2 changed files with 2 additions and 3 deletions

View File

@@ -220,8 +220,7 @@ namespace Content.Server.Cloning.Systems
// end of genetic damage checks // end of genetic damage checks
var mob = Spawn(speciesPrototype.Prototype, Transform(clonePod.Owner).MapPosition); var mob = Spawn(speciesPrototype.Prototype, Transform(clonePod.Owner).MapPosition);
_appearanceSystem.UpdateAppearance(mob, humanoid.Appearance); _appearanceSystem.UpdateAppearance(mob, humanoid.Appearance, humanoid.Sex, humanoid.Gender, humanoid.Species, humanoid.Age);
_appearanceSystem.UpdateSexGender(mob, humanoid.Sex, humanoid.Gender);
MetaData(mob).EntityName = MetaData(bodyToClone).EntityName; MetaData(mob).EntityName = MetaData(bodyToClone).EntityName;

View File

@@ -36,7 +36,7 @@ namespace Content.Shared.CharacterAppearance.Systems
component.Dirty(); 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; if (!Resolve(uid, ref component)) return;