From 5f73b95e43c5dc9e3e2f77b1f97d6a40539be147 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Thu, 23 Feb 2023 01:37:18 -0800 Subject: [PATCH] Fix chat messages logged in console (#8872) --- patches/server/Adventure.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/server/Adventure.patch b/patches/server/Adventure.patch index 8e6a3c5824..1f547b93f7 100644 --- a/patches/server/Adventure.patch +++ b/patches/server/Adventure.patch @@ -2500,7 +2500,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 boolean flag = this.verifyChatTrusted(message); - this.server.logChatMessage(message.decoratedContent(), params, flag ? null : "Not Secure"); -+ this.server.logChatMessage((unsignedFunction == null ? Component.literal(message.signedContent()) : unsignedFunction.apply(this.server.console)), params, flag ? null : "Not Secure"); // Paper ++ this.server.logChatMessage((unsignedFunction == null ? message.decoratedContent() : unsignedFunction.apply(this.server.console)), params, flag ? null : "Not Secure"); // Paper OutgoingChatMessage outgoingchatmessage = OutgoingChatMessage.create(message); boolean flag1 = false;