Update ClientboundSoundPacket to 1.19

This commit is contained in:
mat 2022-06-17 16:34:34 -05:00
parent d0fc7d0eff
commit d27d283686
2 changed files with 6 additions and 1 deletions

View file

@ -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),
}
}

View file

@ -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)]