Skip to content

Commit

Permalink
мда
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgencheg committed Oct 9, 2024
1 parent a43a561 commit 7eb999c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Content.Client/Corvax/TTS/TTSSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Content.Shared.Administration;
using Content.Shared.Ghost;
using System.Linq;
using Content.Shared.Language.Components;
using JetBrains.Annotations;


Expand Down Expand Up @@ -96,7 +97,7 @@ private void OnPlayTTS(PlayTTSEvent ev)
{
var isadmin = _adminMgr.HasFlag(AdminFlags.Admin) && _entities.TryGetComponent<GhostComponent>(player, out var ghostcomp);

if ((_language.UnderstoodLanguages.Contains(ev.LanguageProtoId) || isadmin) && ev.LanguageProtoId != "Sign")
if (((_entities.TryGetComponent<LanguageSpeakerComponent>(player, out var langcomp) && langcomp.UnderstoodLanguages.Contains(ev.LanguageProtoId)) || isadmin) && ev.LanguageProtoId != "Sign")
_contentRoot.AddOrUpdateFile(filePath, ev.Data);
else
return; //временно отключена озвучка языков
Expand Down

0 comments on commit 7eb999c

Please sign in to comment.