From 9c13b516705af64f7b947068d5acdfc78e70811a Mon Sep 17 00:00:00 2001 From: CaypenNow <66198468+CaypenNow@users.noreply.github.com> Date: Sun, 17 Mar 2024 06:25:45 +0500 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D0=B5=D1=80=D1=81=D0=BE=D0=BD?= =?UTF-8?q?=D0=B0=D0=B6=D0=B8=20=D0=BC=D1=83=D0=B6=D1=81=D0=BA=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BF=D0=BE=D0=BB=D0=B0=20=D0=B2=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D1=8C=20=D0=B8=D0=B7=D0=B4=D0=B0=D1=8E=D1=82=20=D0=B7=D0=B2?= =?UTF-8?q?=D1=83=D0=BA=D0=B8=20(#214)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Speech/EntitySystems/VocalSystem.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Content.Server/Speech/EntitySystems/VocalSystem.cs b/Content.Server/Speech/EntitySystems/VocalSystem.cs index 47a3e9936b..217a568d07 100644 --- a/Content.Server/Speech/EntitySystems/VocalSystem.cs +++ b/Content.Server/Speech/EntitySystems/VocalSystem.cs @@ -19,11 +19,16 @@ public sealed class VocalSystem : EntitySystem public override void Initialize() { base.Initialize(); - + SubscribeLocalEvent(OnMapInit); SubscribeLocalEvent(OnSexChanged); SubscribeLocalEvent(OnEmote); } + private void OnMapInit(EntityUid uid, VocalComponent component, MapInitEvent args) + { + LoadSounds(uid, component); + } + private void OnSexChanged(EntityUid uid, VocalComponent component, SexChangedEvent args) { LoadSounds(uid, component);