Fix appearance being lost on cloning (#11250)
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user