--- a/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java
+++ b/net/minecraft/network/protocol/handshake/ClientIntentionPacket.java
@@ -1,3 +1,4 @@
+// mc-dev import
 package net.minecraft.network.protocol.handshake;
 
 import net.minecraft.network.ConnectionProtocol;
@@ -5,12 +6,12 @@
 import net.minecraft.network.protocol.Packet;
 
 public record ClientIntentionPacket(int protocolVersion, String hostName, int port, ClientIntent intention) implements Packet<ServerHandshakePacketListener> {
-    public String hostName;
-    public final int port;
+
     private static final int MAX_HOST_LENGTH = 255;
 
     public ClientIntentionPacket(FriendlyByteBuf buf) {
-        this(buf.readVarInt(), buf.readUtf(255), buf.readUnsignedShort(), ClientIntent.byId(buf.readVarInt()));
+        // Spigot - increase max hostName length
+        this(buf.readVarInt(), buf.readUtf(Short.MAX_VALUE), buf.readUnsignedShort(), ClientIntent.byId(buf.readVarInt()));
     }
 
     @Override
@@ -21,7 +22,6 @@
         buf.writeVarInt(this.intention.id());
     }
 
-    @Override
     public void handle(ServerHandshakePacketListener listener) {
         listener.handleIntention(this);
     }
