Fix incorrect gender on humanoid appearance cloning (#11745)
This commit is contained in:
@@ -110,7 +110,6 @@ public sealed partial class HumanoidSystem : SharedHumanoidSystem
|
|||||||
EnsureDefaultMarkings(uid, humanoid);
|
EnsureDefaultMarkings(uid, humanoid);
|
||||||
|
|
||||||
humanoid.Gender = profile.Gender;
|
humanoid.Gender = profile.Gender;
|
||||||
|
|
||||||
if (TryComp<GrammarComponent>(uid, out var grammar))
|
if (TryComp<GrammarComponent>(uid, out var grammar))
|
||||||
{
|
{
|
||||||
grammar.Gender = profile.Gender;
|
grammar.Gender = profile.Gender;
|
||||||
@@ -144,6 +143,12 @@ public sealed partial class HumanoidSystem : SharedHumanoidSystem
|
|||||||
targetHumanoid.CustomBaseLayers = new(sourceHumanoid.CustomBaseLayers);
|
targetHumanoid.CustomBaseLayers = new(sourceHumanoid.CustomBaseLayers);
|
||||||
targetHumanoid.CurrentMarkings = new(sourceHumanoid.CurrentMarkings);
|
targetHumanoid.CurrentMarkings = new(sourceHumanoid.CurrentMarkings);
|
||||||
|
|
||||||
|
targetHumanoid.Gender = sourceHumanoid.Gender;
|
||||||
|
if (TryComp<GrammarComponent>(target, out var grammar))
|
||||||
|
{
|
||||||
|
grammar.Gender = sourceHumanoid.Gender;
|
||||||
|
}
|
||||||
|
|
||||||
Synchronize(target, targetHumanoid);
|
Synchronize(target, targetHumanoid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user