Restores missing pronouns. Oops! (#5051)

This commit is contained in:
Flipp Syder
2021-10-27 11:50:12 -07:00
committed by GitHub
parent c67160ae19
commit e29e058f8c

View File

@@ -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));