mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2025-01-08 19:38:36 +01:00
don't limit handshake string
This commit is contained in:
parent
31c5b13861
commit
b415fd5223
@ -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)]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user