diff --git a/src/main/java/net/minestom/server/network/packet/server/login/EncryptionRequestPacket.java b/src/main/java/net/minestom/server/network/packet/server/login/EncryptionRequestPacket.java index 256b8aa5d..b5d8f2731 100644 --- a/src/main/java/net/minestom/server/network/packet/server/login/EncryptionRequestPacket.java +++ b/src/main/java/net/minestom/server/network/packet/server/login/EncryptionRequestPacket.java @@ -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