diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-09-30 10:56:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-30 10:56:34 -0500 |
| commit | 643fcb98c0e6cdc63218dd39960d9053b209d9a6 (patch) | |
| tree | 6bddb7fe39b8fcc3ab3fb2665574533bb227898a /azalea-client/src/plugins | |
| parent | a80d8d1b242430c4a251876fa67bfd26af7a0de9 (diff) | |
| download | azalea-drasl-643fcb98c0e6cdc63218dd39960d9053b209d9a6.tar.xz | |
1.21.9 (#235)
* start updating to 25w33a
* 1.21.9-pre2
* clippy
* cleanup, and fix c_explode and c_player_rotation
* mc update should be in Changed section in the changelog
* 1.21.9
Diffstat (limited to 'azalea-client/src/plugins')
| -rw-r--r-- | azalea-client/src/plugins/packet/config/mod.rs | 4 | ||||
| -rw-r--r-- | azalea-client/src/plugins/packet/game/mod.rs | 30 |
2 files changed, 28 insertions, 6 deletions
diff --git a/azalea-client/src/plugins/packet/config/mod.rs b/azalea-client/src/plugins/packet/config/mod.rs index e8bb017d..629f9f71 100644 --- a/azalea-client/src/plugins/packet/config/mod.rs +++ b/azalea-client/src/plugins/packet/config/mod.rs @@ -57,6 +57,7 @@ pub fn process_packet(ecs: &mut World, player: Entity, packet: &ClientboundConfi server_links, clear_dialog, show_dialog, + code_of_conduct, ] ); } @@ -231,4 +232,7 @@ impl ConfigPacketHandler<'_> { pub fn show_dialog(&mut self, p: &ClientboundShowDialog) { debug!("Got show dialog packet {p:?}"); } + pub fn code_of_conduct(&mut self, p: &ClientboundCodeOfConduct) { + debug!("Got code of conduct packet {p:?}"); + } } diff --git a/azalea-client/src/plugins/packet/game/mod.rs b/azalea-client/src/plugins/packet/game/mod.rs index ed45ab61..46cfd531 100644 --- a/azalea-client/src/plugins/packet/game/mod.rs +++ b/azalea-client/src/plugins/packet/game/mod.rs @@ -182,6 +182,11 @@ pub fn process_packet(ecs: &mut World, player: Entity, packet: &ClientboundGameP waypoint, clear_dialog, show_dialog, + debug_block_value, + debug_chunk_value, + debug_entity_value, + debug_event, + game_test_highlight_pos, ] ); } @@ -730,11 +735,7 @@ impl GamePacketHandler<'_> { // this is to make sure the same entity velocity update doesn't get sent // multiple times when in swarms - let knockback = KnockbackType::Set(Vec3 { - x: p.delta.xa as f64 / 8000., - y: p.delta.ya as f64 / 8000., - z: p.delta.za as f64 / 8000., - }); + let knockback = KnockbackType::Set(p.delta.to_vec3()); commands.entity(entity).queue(RelativeEntityUpdate::new( instance_holder.partial_instance.clone(), @@ -1228,7 +1229,7 @@ impl GamePacketHandler<'_> { trace!("Got explode packet {p:?}"); as_system::<MessageWriter<_>>(self.ecs, |mut knockback_events| { - if let Some(knockback) = p.knockback { + if let Some(knockback) = p.player_knockback { knockback_events.write(KnockbackEvent { entity: self.player, knockback: KnockbackType::Set(knockback), @@ -1564,4 +1565,21 @@ impl GamePacketHandler<'_> { pub fn show_dialog(&mut self, p: &ClientboundShowDialog) { debug!("Got show dialog packet {p:?}"); } + + pub fn debug_block_value(&mut self, p: &ClientboundDebugBlockValue) { + debug!("Got debug block value packet {p:?}"); + } + pub fn debug_chunk_value(&mut self, p: &ClientboundDebugChunkValue) { + debug!("Got debug chunk value packet {p:?}"); + } + pub fn debug_entity_value(&mut self, p: &ClientboundDebugEntityValue) { + debug!("Got debug entity value packet {p:?}"); + } + + pub fn debug_event(&mut self, p: &ClientboundDebugEvent) { + debug!("Got debug event packet {p:?}"); + } + pub fn game_test_highlight_pos(&mut self, p: &ClientboundGameTestHighlightPos) { + debug!("Got game test highlight pos packet {p:?}"); + } } |
