From 3440fc5a5fdc7a5f0dde82067422932cccd64afd Mon Sep 17 00:00:00 2001 From: Den Frae Date: Thu, 31 Oct 2024 13:04:12 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Server/Chat/Systems/ChatSystem.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Content.Server/Chat/Systems/ChatSystem.cs b/Content.Server/Chat/Systems/ChatSystem.cs index 893135f699..3908bca7f2 100644 --- a/Content.Server/Chat/Systems/ChatSystem.cs +++ b/Content.Server/Chat/Systems/ChatSystem.cs @@ -625,26 +625,16 @@ private void SendHiddenEntityEmote( var coloredName = $"[color=#FFD29E]{name}[/color]"; var coloredAction = $"[color=#FFD29E]{FormattedMessage.RemoveMarkup(action)}[/color]"; - - string wrappedMessage; - try - { - wrappedMessage = Loc.GetString("chat-manager-entity-me-wrap-message", + string wrappedMessage = Loc.GetString("chat-manager-entity-me-wrap-message", ("entityName", coloredName), ("entity", ent), ("message", coloredAction)); - } - catch (NullReferenceException ex) - { - Logger.ErrorS("loc", $"Localization error: {ex}"); - wrappedMessage = "Emote error"; - } if (checkEmote) TryEmoteChatInput(source, action); - float hiddenEmoteRange = 0.3f; + float hiddenEmoteRange = 2; foreach (var (session, data) in GetRecipients(source, hiddenEmoteRange)) {