diff --git a/Content.Client/Corvax/TTS/TTSSystem.cs b/Content.Client/Corvax/TTS/TTSSystem.cs index 7e6ed6e37e..fe790e2490 100644 --- a/Content.Client/Corvax/TTS/TTSSystem.cs +++ b/Content.Client/Corvax/TTS/TTSSystem.cs @@ -15,6 +15,7 @@ using Content.Shared.Administration; using Content.Shared.Ghost; using System.Linq; +using Content.Shared.Language.Components; using JetBrains.Annotations; @@ -96,7 +97,7 @@ private void OnPlayTTS(PlayTTSEvent ev) { var isadmin = _adminMgr.HasFlag(AdminFlags.Admin) && _entities.TryGetComponent(player, out var ghostcomp); - if ((_language.UnderstoodLanguages.Contains(ev.LanguageProtoId) || isadmin) && ev.LanguageProtoId != "Sign") + if (((_entities.TryGetComponent(player, out var langcomp) && langcomp.UnderstoodLanguages.Contains(ev.LanguageProtoId)) || isadmin) && ev.LanguageProtoId != "Sign") _contentRoot.AddOrUpdateFile(filePath, ev.Data); else return; //временно отключена озвучка языков