From f2ca28183f4d1fc531583c402e50d2f82a213257 Mon Sep 17 00:00:00 2001 From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com> Date: Sun, 6 Jul 2025 20:08:35 +0800 Subject: [PATCH] Cleanup --- .../0036-Do-not-log-expired-message-warnings.patch | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/leaf-server/minecraft-patches/features/0036-Do-not-log-expired-message-warnings.patch b/leaf-server/minecraft-patches/features/0036-Do-not-log-expired-message-warnings.patch index 7a630914..80f65021 100644 --- a/leaf-server/minecraft-patches/features/0036-Do-not-log-expired-message-warnings.patch +++ b/leaf-server/minecraft-patches/features/0036-Do-not-log-expired-message-warnings.patch @@ -7,15 +7,15 @@ License: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) Gale - https://galemc.org diff --git a/net/minecraft/network/chat/SignedMessageChain.java b/net/minecraft/network/chat/SignedMessageChain.java -index 23872fac07fa36f10ef090df2423c978998dcb99..44b166f5802468d7b1aefc8641496e0fefd6998f 100644 +index 23872fac07fa36f10ef090df2423c978998dcb99..ba1cd567363370798c513c54a0534b955de58fd4 100644 --- a/net/minecraft/network/chat/SignedMessageChain.java +++ b/net/minecraft/network/chat/SignedMessageChain.java -@@ -56,7 +56,7 @@ public class SignedMessageChain { +@@ -55,7 +55,7 @@ public class SignedMessageChain { + this.setChainBroken(); throw new SignedMessageChain.DecodeException(SignedMessageChain.DecodeException.INVALID_SIGNATURE); } else { - if (playerChatMessage.hasExpiredServer(Instant.now())) { -- SignedMessageChain.LOGGER.warn("Received expired chat: '{}'. Is the client/server system time unsynchronized?", body.content()); -+ if (org.galemc.gale.configuration.GaleGlobalConfiguration.get().logToConsole.chat.expiredMessageWarning) SignedMessageChain.LOGGER.warn("Received expired chat: '{}'. Is the client/server system time unsynchronized?", body.content()); // Gale - do not log expired message warnings +- if (playerChatMessage.hasExpiredServer(Instant.now())) { ++ if (org.galemc.gale.configuration.GaleGlobalConfiguration.get().logToConsole.chat.expiredMessageWarning && playerChatMessage.hasExpiredServer(Instant.now())) { // Gale - do not log expired message warnings + SignedMessageChain.LOGGER.warn("Received expired chat: '{}'. Is the client/server system time unsynchronized?", body.content()); } - SignedMessageChain.this.nextLink = signedMessageLink.advance();