don't limit handshake string

This commit is contained in:
creeper123123321 2022-06-12 09:37:37 -03:00
parent 31c5b13861
commit b415fd5223

View File

@ -15,7 +15,7 @@ class Handshake : Packet {
override fun decode(byteBuf: ByteBuf, protocolVersion: Int) { override fun decode(byteBuf: ByteBuf, protocolVersion: Int) {
protocolId = Type.VAR_INT.readPrimitive(byteBuf) protocolId = Type.VAR_INT.readPrimitive(byteBuf)
address = StringType(255).read(byteBuf) address = Type.STRING.read(byteBuf)
port = byteBuf.readUnsignedShort() port = byteBuf.readUnsignedShort()
nextState = State.values()[Type.VAR_INT.readPrimitive(byteBuf)] nextState = State.values()[Type.VAR_INT.readPrimitive(byteBuf)]
} }