diff --git a/src/main/kotlin/com/viaversion/aas/codec/packet/handshake/Handshake.kt b/src/main/kotlin/com/viaversion/aas/codec/packet/handshake/Handshake.kt index 5bae7fd..5c70b22 100644 --- a/src/main/kotlin/com/viaversion/aas/codec/packet/handshake/Handshake.kt +++ b/src/main/kotlin/com/viaversion/aas/codec/packet/handshake/Handshake.kt @@ -15,7 +15,7 @@ class Handshake : Packet { override fun decode(byteBuf: ByteBuf, protocolVersion: Int) { protocolId = Type.VAR_INT.readPrimitive(byteBuf) - address = StringType(255).read(byteBuf) + address = Type.STRING.read(byteBuf) port = byteBuf.readUnsignedShort() nextState = State.values()[Type.VAR_INT.readPrimitive(byteBuf)] }