From 8ffe40ef0c10d0494b6fd71e175c1e02841ba23a Mon Sep 17 00:00:00 2001 From: Andrey Ushakov <10843461+Werzet@users.noreply.github.com> Date: Mon, 1 Apr 2024 21:27:12 +1000 Subject: [PATCH] fix sequence search (#863) --- Content.Server/Chat/Managers/ChatManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Chat/Managers/ChatManager.cs b/Content.Server/Chat/Managers/ChatManager.cs index 90d3b82a58b8..8c2f9b1aa7ae 100644 --- a/Content.Server/Chat/Managers/ChatManager.cs +++ b/Content.Server/Chat/Managers/ChatManager.cs @@ -255,7 +255,7 @@ private void SendOOC(ICommonSession player, string message) var SponsorInfo = player.ContentData()?.SponsorInfo; if (SponsorInfo is not null && !_adminManager.HasAdminFlag(player, AdminFlags.Admin)) { - if (BoostyOocColors.TryGetValue(SponsorInfo.Tiers.Max(), out var sponsorColor)) + if (SponsorInfo.Tiers.Any() && BoostyOocColors.TryGetValue(SponsorInfo.Tiers.Max(), out var sponsorColor)) { wrappedMessage = Loc.GetString("chat-manager-send-ooc-patron-wrap-message", ("patronColor", sponsorColor), ("playerName", player.Name), ("message", FormattedMessage.EscapeText(message))); }