diff options
| author | mat <github@matdoes.dev> | 2022-06-17 16:34:34 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-06-17 16:34:34 -0500 |
| commit | d27d283686d2920d7a7c08087e2d5a39c63fae1c (patch) | |
| tree | 767de0225762526cf53f68f63af257f05bce68e1 | |
| parent | d0fc7d0eff32687d7210b730584db2c3faa055ae (diff) | |
| download | azalea-drasl-d27d283686d2920d7a7c08087e2d5a39c63fae1c.tar.xz | |
Update ClientboundSoundPacket to 1.19
| -rwxr-xr-x | azalea-client/src/connect.rs | 3 | ||||
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_sound_packet.rs | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index cb2bec9c..4ef3df63 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -447,6 +447,9 @@ impl Client { GamePacket::ClientboundServerDataPacket(p) => { println!("Got server data packet {:?}", p); } + GamePacket::ClientboundSetEquipmentPacket(p) => { + println!("Got set equipment packet {:?}", p); + } _ => panic!("Unexpected packet {:?}", packet), } } diff --git a/azalea-protocol/src/packets/game/clientbound_sound_packet.rs b/azalea-protocol/src/packets/game/clientbound_sound_packet.rs index 797f03de..fbc5830b 100644 --- a/azalea-protocol/src/packets/game/clientbound_sound_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_sound_packet.rs @@ -3,7 +3,7 @@ use packet_macros::{GamePacket, McBuf}; #[derive(Clone, Debug, McBuf, GamePacket)] pub struct ClientboundSoundPacket { #[var] - /// TODO: use the sound registry instead of just being a u32 + // TODO: use the sound registry instead of just being a u32 pub sound: u32, pub source: SoundSource, pub x: i32, @@ -11,6 +11,8 @@ pub struct ClientboundSoundPacket { pub z: i32, pub volume: f32, pub pitch: f32, + /// Seed used to pick sound varient. + pub seed: u64, } #[derive(Clone, Debug, Copy, McBuf)] |
