22 lines
1.3 KiB
Diff
22 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|||
|
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
||
|
|
Date: Wed, 8 Jul 2026 21:53:18 +0800
|
||
|
|
Subject: [PATCH] Add config to support for long command inputs
|
||
|
|
|
||
|
|
Some long commands can be run through the dialog command, but paper has prohibited it.
|
||
|
|
Revert to vanilla to fix it.
|
||
|
|
|
||
|
|
diff --git a/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java b/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java
|
||
|
|
index 491af2413a4e793a121fec368259ff8211ed031e..f9076b71f22b016a117a1eeb9cc4b8801db000e7 100644
|
||
|
|
--- a/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java
|
||
|
|
+++ b/net/minecraft/network/protocol/game/ServerboundChatCommandPacket.java
|
||
|
|
@@ -12,7 +12,7 @@ public record ServerboundChatCommandPacket(String command) implements Packet<Ser
|
||
|
|
);
|
||
|
|
|
||
|
|
private ServerboundChatCommandPacket(final FriendlyByteBuf input) {
|
||
|
|
- this(input.readUtf(MAX_CHAT_PACKET_INPUT_SIZE)); // Paper - limit chat command inputs
|
||
|
|
+ this(moe.monnairealms.camellia.config.modules.fixes.LongCommandSupportConfig.enabled ? input.readUtf() : input.readUtf(MAX_CHAT_PACKET_INPUT_SIZE)); // Paper - limit chat command inputs // Camellia - Add config to support for long command inputs
|
||
|
|
}
|
||
|
|
|
||
|
|
private void write(final FriendlyByteBuf output) {
|