diff options
Diffstat (limited to 'azalea-protocol/src/packets/login')
3 files changed, 8 insertions, 7 deletions
diff --git a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs index 3138106e..9e1e1df5 100755 --- a/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs +++ b/azalea-protocol/src/packets/login/clientbound_custom_query_packet.rs @@ -1,3 +1,4 @@ +use crate::mc_buf::UnsizedByteArray; use azalea_core::resource_location::ResourceLocation; use packet_macros::LoginPacket; use std::hash::Hash; @@ -7,5 +8,5 @@ pub struct ClientboundCustomQueryPacket { #[varint] pub transaction_id: u32, pub identifier: ResourceLocation, - pub data: Vec<u8>, + pub data: UnsizedByteArray, } diff --git a/azalea-protocol/src/packets/login/clientbound_hello_packet.rs b/azalea-protocol/src/packets/login/clientbound_hello_packet.rs index d36f1335..20af1bec 100755 --- a/azalea-protocol/src/packets/login/clientbound_hello_packet.rs +++ b/azalea-protocol/src/packets/login/clientbound_hello_packet.rs @@ -1,13 +1,13 @@ use std::hash::Hash; use super::LoginPacket; -use crate::mc_buf::{ByteArray, Readable}; +use crate::mc_buf::Readable; #[derive(Hash, Clone, Debug)] pub struct ClientboundHelloPacket { pub server_id: String, - pub public_key: ByteArray, - pub nonce: ByteArray, + pub public_key: Vec<u8>, + pub nonce: Vec<u8>, } impl ClientboundHelloPacket { diff --git a/azalea-protocol/src/packets/login/serverbound_key_packet.rs b/azalea-protocol/src/packets/login/serverbound_key_packet.rs index 3750331f..f402d357 100644 --- a/azalea-protocol/src/packets/login/serverbound_key_packet.rs +++ b/azalea-protocol/src/packets/login/serverbound_key_packet.rs @@ -1,10 +1,10 @@ use super::LoginPacket; -use crate::mc_buf::{ByteArray, Writable}; +use crate::mc_buf::Writable; use packet_macros::LoginPacket; use std::hash::Hash; #[derive(Hash, Clone, Debug, LoginPacket)] pub struct ServerboundKeyPacket { - pub shared_secret: ByteArray, - pub nonce: ByteArray, + pub shared_secret: Vec<u8>, + pub nonce: Vec<u8>, } |
