--- 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.SharedConstants;
@@ -6,6 +7,7 @@
 import net.minecraft.network.protocol.Packet;
 
 public class ClientIntentionPacket implements Packet<ServerHandshakePacketListener> {
+
     private static final int MAX_HOST_LENGTH = 255;
     private final int protocolVersion;
     public String hostName;
@@ -21,7 +23,7 @@
 
     public ClientIntentionPacket(FriendlyByteBuf buf) {
         this.protocolVersion = buf.readVarInt();
-        this.hostName = buf.readUtf(255);
+        this.hostName = buf.readUtf(Short.MAX_VALUE); // Spigot
         this.port = buf.readUnsignedShort();
         this.intention = ConnectionProtocol.getById(buf.readVarInt());
     }
@@ -34,7 +36,6 @@
         buf.writeVarInt(this.intention.getId());
     }
 
-    @Override
     public void handle(ServerHandshakePacketListener listener) {
         listener.handleIntention(this);
     }
