diff options
| author | mat <github@matdoes.dev> | 2022-04-27 18:00:50 +0000 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-04-27 18:00:50 +0000 |
| commit | 9b50886c30f3e9129e054b019581264c9e6cadaf (patch) | |
| tree | 8dfcc5bb8980a86d650a0d3d7afb705624b818c6 /azalea-protocol/src/packets/login | |
| parent | 60d1fa50c32c202dd04895caa51172948a4760b6 (diff) | |
| download | azalea-drasl-9b50886c30f3e9129e054b019581264c9e6cadaf.tar.xz | |
player info packet
Diffstat (limited to 'azalea-protocol/src/packets/login')
| -rwxr-xr-x | azalea-protocol/src/packets/login/clientbound_game_profile_packet.rs | 2 |
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, |
