mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
Some fix, and clear
This commit is contained in:
@@ -22,3 +22,21 @@ index 3b0931d9bb5eef6f900c09a1fc342516e708af58..9bfe3bc0e9993280e5dac75e858f76d2
|
||||
}
|
||||
|
||||
@Override
|
||||
diff --git a/net/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java b/net/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java
|
||||
index 07943553b562b95076bdce232d6f0796f469400f..d1976d89ddc29e77db498c50f961634e76868521 100644
|
||||
--- a/net/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java
|
||||
+++ b/net/minecraft/network/protocol/game/ServerboundChatCommandSignedPacket.java
|
||||
@@ -16,11 +16,11 @@ public record ServerboundChatCommandSignedPacket(
|
||||
);
|
||||
|
||||
private ServerboundChatCommandSignedPacket(FriendlyByteBuf buffer) {
|
||||
- this(buffer.readUtf(), buffer.readInstant(), buffer.readLong(), new ArgumentSignatures(buffer), new LastSeenMessages.Update(buffer));
|
||||
+ this(buffer.readUtf(org.leavesmc.leaves.LeavesConfig.mics.chatCommandMaxLength), buffer.readInstant(), buffer.readLong(), new ArgumentSignatures(buffer), new LastSeenMessages.Update(buffer)); // Leaves - chat command max length
|
||||
}
|
||||
|
||||
private void write(FriendlyByteBuf buffer) {
|
||||
- buffer.writeUtf(this.command);
|
||||
+ buffer.writeUtf(this.command, org.leavesmc.leaves.LeavesConfig.mics.chatCommandMaxLength); // Leaves - chat command max length
|
||||
buffer.writeInstant(this.timeStamp);
|
||||
buffer.writeLong(this.salt);
|
||||
this.argumentSignatures.write(buffer);
|
||||
|
||||
@@ -1042,7 +1042,7 @@ public final class LeavesConfig {
|
||||
public String source = "application";
|
||||
|
||||
public static class DownloadSourceValidator extends StringConfigValidator {
|
||||
private static List<String> suggestSourceList = List.of("application", "cloud");
|
||||
private static final List<String> suggestSourceList = List.of("application", "cloud");
|
||||
|
||||
@Override
|
||||
public List<String> valueSuggest() {
|
||||
|
||||
Reference in New Issue
Block a user