From 6d88f6a1fa38c6be61fa992b25b36f6e55d090ee Mon Sep 17 00:00:00 2001 From: Chris Yeninas <844685+PhantomGamers@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:20:14 -0500 Subject: [PATCH] fix error caused by the player join message --- NebulaWorld/MonoBehaviours/Local/Chat/ChatWindow.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NebulaWorld/MonoBehaviours/Local/Chat/ChatWindow.cs b/NebulaWorld/MonoBehaviours/Local/Chat/ChatWindow.cs index a674b744c..dfddf42f8 100644 --- a/NebulaWorld/MonoBehaviours/Local/Chat/ChatWindow.cs +++ b/NebulaWorld/MonoBehaviours/Local/Chat/ChatWindow.cs @@ -213,8 +213,12 @@ public ChatMessage SendLocalChatMessage(string text, ChatMessageType messageType break; case ChatMessageType.PlayerMessagePrivate: break; + case ChatMessageType.SystemInfoMessage when Config.Options.EnableInfoMessage: + break; + case ChatMessageType.SystemWarnMessage when Config.Options.EnableWarnMessage: + break; default: - throw new ArgumentOutOfRangeException(nameof(messageType), messageType, null); + throw new ArgumentOutOfRangeException(nameof(messageType), "Invalid message type: " + messageType); } }