aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-27 18:00:50 +0000
committermat <github@matdoes.dev>2022-04-27 18:00:50 +0000
commit9b50886c30f3e9129e054b019581264c9e6cadaf (patch)
tree8dfcc5bb8980a86d650a0d3d7afb705624b818c6 /azalea-protocol/src/packets/login
parent60d1fa50c32c202dd04895caa51172948a4760b6 (diff)
downloadazalea-drasl-9b50886c30f3e9129e054b019581264c9e6cadaf.tar.xz
player info packet
Diffstat (limited to 'azalea-protocol/src/packets/login')
-rwxr-xr-xazalea-protocol/src/packets/login/clientbound_game_profile_packet.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs b/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs
index c54aa819..ccf0f482 100755
--- a/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs
+++ b/azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs
@@ -9,6 +9,7 @@ pub struct ClientboundGameProfilePacket {
pub game_profile: GameProfile,
}
+// TODO: add derives to GameProfile and have an impl McBufReadable/Writable for GameProfile
impl ClientboundGameProfilePacket {
pub fn get(self) -> LoginPacket {
LoginPacket::ClientboundGameProfilePacket(self)
@@ -25,6 +26,7 @@ impl ClientboundGameProfilePacket {
pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
buf: &mut T,
) -> Result<LoginPacket, String> {
+ // TODO: we have a thing to read from the uuid now
let uuid = Uuid::from_int_array([
buf.read_int().await? as u32,
buf.read_int().await? as u32,