aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-01-21 23:21:08 +0000
committermat <git@matdoes.dev>2025-01-21 23:21:08 +0000
commit900a4234e5b7fbf24a557907bce7c3b7ce30822e (patch)
tree0968547dbdb08b42fe276c1deadbe548e670dca9 /azalea-protocol/src
parentaef29daad94189fb5dd5fc97bccf49ff9dbba661 (diff)
downloadazalea-drasl-900a4234e5b7fbf24a557907bce7c3b7ce30822e.tar.xz
fix wrong ClientboundSoundEntity
Diffstat (limited to 'azalea-protocol/src')
-rwxr-xr-xazalea-protocol/src/packets/game/c_sound_entity.rs19
1 files changed, 4 insertions, 15 deletions
diff --git a/azalea-protocol/src/packets/game/c_sound_entity.rs b/azalea-protocol/src/packets/game/c_sound_entity.rs
index 96b22cb8..fab30b14 100755
--- a/azalea-protocol/src/packets/game/c_sound_entity.rs
+++ b/azalea-protocol/src/packets/game/c_sound_entity.rs
@@ -1,27 +1,16 @@
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_registry::SoundEvent;
+
+use super::c_sound::{CustomSound, SoundSource};
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
pub struct ClientboundSoundEntity {
+ pub sound: azalea_registry::Holder<SoundEvent, CustomSound>,
pub source: SoundSource,
#[var]
pub id: u32,
pub volume: f32,
pub pitch: f32,
- #[var]
pub seed: u64,
}
-
-#[derive(AzBuf, Clone, Copy, Debug)]
-pub enum SoundSource {
- Master = 0,
- Music = 1,
- Records = 2,
- Weather = 3,
- Blocks = 4,
- Hostile = 5,
- Neutral = 6,
- Players = 7,
- Ambient = 8,
- Voice = 9,
-}