From e68eb3fe98a480d22dffe7a742dafe226f95fe40 Mon Sep 17 00:00:00 2001 From: violetc <58360096+s-yh-china@users.noreply.github.com> Date: Wed, 30 Jul 2025 18:00:20 +0800 Subject: [PATCH] Chat command max length --- .../0139-Chat-command-max-length.patch | 24 +++++++++++++++++++ .../org/leavesmc/leaves/LeavesConfig.java | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 leaves-server/minecraft-patches/features/0139-Chat-command-max-length.patch diff --git a/leaves-server/minecraft-patches/features/0139-Chat-command-max-length.patch b/leaves-server/minecraft-patches/features/0139-Chat-command-max-length.patch new file mode 100644 index 00000000..274e03bd --- /dev/null +++ b/leaves-server/minecraft-patches/features/0139-Chat-command-max-length.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: violetc <58360096+s-yh-china@users.noreply.github.com> +Date: Wed, 30 Jul 2025 17:58:24 +0800 +Subject: [PATCH] Chat command max length + + +diff --git a/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java b/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java +index 3b0931d9bb5eef6f900c09a1fc342516e708af58..9bfe3bc0e9993280e5dac75e858f76d246b16c20 100644 +--- a/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java ++++ b/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java +@@ -11,11 +11,11 @@ public record ServerboundChatCommandPacket(String command) implements Packet