mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
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);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user