From adf8a604c400c19df8e28d6345abf2c0a8c32d05 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 4 Apr 2025 13:48:48 -0845 Subject: fix ordering for handle_attack_queued --- azalea-client/src/plugins/attack.rs | 4 +++- azalea-client/src/plugins/movement.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/plugins/attack.rs b/azalea-client/src/plugins/attack.rs index 34122108..c9ecde56 100644 --- a/azalea-client/src/plugins/attack.rs +++ b/azalea-client/src/plugins/attack.rs @@ -33,7 +33,9 @@ impl Plugin for AttackPlugin { ( increment_ticks_since_last_attack, update_attack_strength_scale.after(PhysicsSet), - handle_attack_queued.before(super::tick_end::game_tick_packet), + handle_attack_queued + .before(super::tick_end::game_tick_packet) + .after(super::movement::send_sprinting_if_needed), ) .chain(), ); diff --git a/azalea-client/src/plugins/movement.rs b/azalea-client/src/plugins/movement.rs index 1a02fd21..f45ead9c 100644 --- a/azalea-client/src/plugins/movement.rs +++ b/azalea-client/src/plugins/movement.rs @@ -287,7 +287,7 @@ pub fn send_player_input_packet( } } -fn send_sprinting_if_needed( +pub fn send_sprinting_if_needed( mut query: Query<(Entity, &MinecraftEntityId, &Sprinting, &mut PhysicsState)>, mut commands: Commands, ) { -- cgit v1.2.3