Fix incorrect gender on humanoid appearance cloning (#11745)

This commit is contained in:
Flipp Syder
2022-10-06 21:18:30 -07:00
committed by GitHub
parent 9a8248a3f9
commit ed9060d56a

View File

@@ -110,7 +110,6 @@ public sealed partial class HumanoidSystem : SharedHumanoidSystem
EnsureDefaultMarkings(uid, humanoid);
humanoid.Gender = profile.Gender;
if (TryComp<GrammarComponent>(uid, out var grammar))
{
grammar.Gender = profile.Gender;
@@ -144,6 +143,12 @@ public sealed partial class HumanoidSystem : SharedHumanoidSystem
targetHumanoid.CustomBaseLayers = new(sourceHumanoid.CustomBaseLayers);
targetHumanoid.CurrentMarkings = new(sourceHumanoid.CurrentMarkings);
targetHumanoid.Gender = sourceHumanoid.Gender;
if (TryComp<GrammarComponent>(target, out var grammar))
{
grammar.Gender = sourceHumanoid.Gender;
}
Synchronize(target, targetHumanoid);
}