From fe687f9bdbdf3e0214ac4ac6da47a181e4dc23dd Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 15 Jun 2023 14:37:20 -0500 Subject: fix clientboundsoundpacket closes #89 --- azalea-protocol/src/packets/game/clientbound_sound_packet.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'azalea-protocol/src/packets') diff --git a/azalea-protocol/src/packets/game/clientbound_sound_packet.rs b/azalea-protocol/src/packets/game/clientbound_sound_packet.rs index 39dd39c8..2b071f2e 100755 --- a/azalea-protocol/src/packets/game/clientbound_sound_packet.rs +++ b/azalea-protocol/src/packets/game/clientbound_sound_packet.rs @@ -1,10 +1,10 @@ use azalea_buf::McBuf; +use azalea_core::ResourceLocation; use azalea_protocol_macros::ClientboundGamePacket; -use azalea_registry::OptionalRegistry; #[derive(Clone, Debug, McBuf, ClientboundGamePacket)] pub struct ClientboundSoundPacket { - pub sound: OptionalRegistry, + pub sound: azalea_registry::CustomRegistry, pub source: SoundSource, pub x: i32, pub y: i32, @@ -14,6 +14,12 @@ pub struct ClientboundSoundPacket { pub seed: u64, } +#[derive(McBuf, Clone, Debug)] +pub struct CustomSoundEvent { + pub location: ResourceLocation, + pub range: Option, +} + #[derive(McBuf, Clone, Copy, Debug)] pub enum SoundSource { Master = 0, -- cgit v1.2.3