net/minecraft/network/protocol/handshake/

This commit is contained in:
Owen1212055
2024-12-14 15:55:18 -05:00
parent 31913c0b0a
commit aa4dd1b840
3 changed files with 16 additions and 19 deletions

View File

@@ -0,0 +1,16 @@
--- a/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java
+++ b/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java
@@ -1,3 +_,4 @@
+// mc-dev import
package net.minecraft.network.protocol.handshake;
import net.minecraft.network.FriendlyByteBuf;
@@ -20,7 +_,7 @@
}
private ClientIntentionPacket(FriendlyByteBuf buffer) {
- this(buffer.readVarInt(), buffer.readUtf(255), buffer.readUnsignedShort(), ClientIntent.byId(buffer.readVarInt()));
+ this(buffer.readVarInt(), buffer.readUtf(Short.MAX_VALUE), buffer.readUnsignedShort(), ClientIntent.byId(buffer.readVarInt())); // Spigot - increase max hostName length
}
private void write(FriendlyByteBuf buffer) {