From e29e058f8c6364539b1391dbbd932d91fc6f93be Mon Sep 17 00:00:00 2001 From: Flipp Syder <76629141+vulppine@users.noreply.github.com> Date: Wed, 27 Oct 2021 11:50:12 -0700 Subject: [PATCH] Restores missing pronouns. Oops! (#5051) --- .../Systems/SharedHumanoidAppearanceSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs b/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs index 1b0b5c9342..6bf89234af 100644 --- a/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs +++ b/Content.Shared/CharacterAppearance/Systems/SharedHumanoidAppearanceSystem.cs @@ -4,6 +4,7 @@ using Content.Shared.CharacterAppearance.Components; using Content.Shared.Preferences; using Robust.Shared.Enums; using Robust.Shared.GameObjects; +using Robust.Shared.GameObjects.Components.Localization; using Robust.Shared.GameStates; using Robust.Shared.Serialization; @@ -38,6 +39,9 @@ namespace Content.Shared.CharacterAppearance.Systems component.Sex = sex; component.Gender = gender; + if (EntityManager.TryGetComponent(uid, out GrammarComponent? g)) + g.Gender = gender; + component.Dirty(); RaiseLocalEvent(uid, new ChangedHumanoidAppearanceEvent(appearance, sex, gender));