mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-05 18:32:28 +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
|
||||
public void write(@NotNull BinaryWriter writer) {
|
||||
writer.writeSizedString(serverId);
|
||||
writer.writeVarInt(publicKey.length);
|
||||
writer.writeBytes(publicKey);
|
||||
writer.writeVarInt(verifyToken.length);
|
||||
writer.writeBytes(verifyToken);
|
||||
writer.writeByteArray(publicKey);
|
||||
writer.writeByteArray(verifyToken);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user