mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-06 02:41:59 +01:00
Use writeByteArray
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
16d3d4417e
commit
14d6a0993b
@ -18,10 +18,8 @@ public record EncryptionRequestPacket(@NotNull String serverId,
|
|||||||
@Override
|
@Override
|
||||||
public void write(@NotNull BinaryWriter writer) {
|
public void write(@NotNull BinaryWriter writer) {
|
||||||
writer.writeSizedString(serverId);
|
writer.writeSizedString(serverId);
|
||||||
writer.writeVarInt(publicKey.length);
|
writer.writeByteArray(publicKey);
|
||||||
writer.writeBytes(publicKey);
|
writer.writeByteArray(verifyToken);
|
||||||
writer.writeVarInt(verifyToken.length);
|
|
||||||
writer.writeBytes(verifyToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user