From bbd379b5f7a905573f024875b5864983bab565b3 Mon Sep 17 00:00:00 2001 From: ImToggle <98242902+ImToggle@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:31:17 +0800 Subject: [PATCH] stop private messages from turning white --- .../hytils/handlers/chat/modules/modifiers/WhiteChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java b/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java index de78a43..07687f1 100644 --- a/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java +++ b/src/main/java/org/polyfrost/hytils/handlers/chat/modules/modifiers/WhiteChat.java @@ -32,7 +32,7 @@ public class WhiteChat implements ChatReceiveModule { @Override public void onMessageReceived(@NotNull ClientChatReceivedEvent event) { final Matcher matcher = getLanguage().whiteChatNonMessageRegex.matcher(event.message.getFormattedText()); - if (matcher.find(0)) { + if (matcher.find(0) && !getLanguage().privateMessageWhiteChatRegex.matcher(event.message.getFormattedText()).find()) { boolean foundStart = false; for (IChatComponent sibling : event.message.getSiblings()) { if (sibling.getFormattedText().startsWith("ยง7: ")) foundStart = true;