Skip to content

Commit

Permalink
фиксы...
Browse files Browse the repository at this point in the history
  • Loading branch information
Farrellka-dev committed Oct 31, 2024
1 parent 947675b commit 3440fc5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 3440fc5

Please sign in to comment.