diff options
| author | mat <git@matdoes.dev> | 2025-10-30 11:02:50 -0530 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-30 11:02:50 -0530 |
| commit | 03a496fc7d952b1136cb717f2e8d1ccfb798ee64 (patch) | |
| tree | e6b4d8052d9e622f741c35c9409e24b2a48436ce /azalea-client/src/plugins/packet | |
| parent | 818f2d01d49e574946d1a704e1445156afc9c2fb (diff) | |
| download | azalea-drasl-03a496fc7d952b1136cb717f2e8d1ccfb798ee64.tar.xz | |
cleanup some code related to mob effects
Diffstat (limited to 'azalea-client/src/plugins/packet')
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index 40446cee..fd5ebef2 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -8,7 +8,7 @@ use azalea_core::{ }; use azalea_entity::{ ActiveEffects, Dead, EntityBundle, EntityKindComponent, HasClientLoaded, LoadedBy, LocalEntity, - LookDirection, MobEffectData, Physics, PlayerAbilities, Position, RelativeEntityUpdate, + LookDirection, Physics, PlayerAbilities, Position, RelativeEntityUpdate, indexing::{EntityIdIndex, EntityUuidIndex}, metadata::{Health, apply_metadata}, }; @@ -1108,13 +1108,7 @@ impl GamePacketHandler<'_> { debug!("Got update mob effect packet {p:?}"); let mob_effect = p.mob_effect; - let effect_data = MobEffectData::new( - p.effect_amplifier, - p.effect_duration_ticks, - p.flags.ambient, - p.flags.show_particles, - p.flags.show_icon, - ); + let effect_data = &p.data; as_system::<(Commands, Query<(&EntityIdIndex, &InstanceHolder)>)>( self.ecs, |
