Increase limit to account for strings being strings

This commit is contained in:
Shane Freeder
2025-05-09 22:17:04 +01:00
parent dc659538d3
commit e13c8c340f

View File

@@ -116,6 +116,6 @@ public class HandshakePacket implements MinecraftPacket {
@Override @Override
public int expectedMaxLength(ByteBuf buf, ProtocolUtils.Direction direction, public int expectedMaxLength(ByteBuf buf, ProtocolUtils.Direction direction,
ProtocolVersion version) { ProtocolVersion version) {
return 270; return 9 + (MAXIMUM_HOSTNAME_LENGTH * 3);
} }
} }