From a0a5e3bfd080690a6d9889cbb45ca11a3be13f04 Mon Sep 17 00:00:00 2001 From: lzk <124214523+lzk228@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:47:40 +0200 Subject: [PATCH] remove identity check --- Content.Server/Corvax/TTS/TTSExamineSystem.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Content.Server/Corvax/TTS/TTSExamineSystem.cs b/Content.Server/Corvax/TTS/TTSExamineSystem.cs index 9ddb944464b..1bdafc2b7f3 100644 --- a/Content.Server/Corvax/TTS/TTSExamineSystem.cs +++ b/Content.Server/Corvax/TTS/TTSExamineSystem.cs @@ -25,9 +25,8 @@ public override void Initialize() private void OnGetExamineVerbs(EntityUid uid, TTSComponent component, GetVerbsEvent args) { - // Don't show verb if no TTS enabled OR if user's name is hidden - if (!_configManager.GetCVar(CCCVars.TTSEnabled) || - Identity.Name(args.Target, EntityManager) != MetaData(args.Target).EntityName) + // Don't show verb if no TTS enabled + if (!_configManager.GetCVar(CCCVars.TTSEnabled)) return; string? voiceId = string.Empty;