mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 22:52:32 +00:00
Update ClientboundSoundPacket to 1.19
This commit is contained in:
parent
d0fc7d0eff
commit
d27d283686
2 changed files with 6 additions and 1 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue