From 472496b7b808b4c6ac6f8e161a5bc1d08f5b0524 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 25 Aug 2023 23:28:19 -0500 Subject: fix all bevy ambiguities --- azalea-physics/src/lib.rs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'azalea-physics/src/lib.rs') diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs index 50b2c11b..9ff605b9 100644 --- a/azalea-physics/src/lib.rs +++ b/azalea-physics/src/lib.rs @@ -33,15 +33,11 @@ impl Plugin for PhysicsPlugin { app.add_event::() .add_systems( Update, - force_jump_listener.after(azalea_entity::clamp_look_direction), + handle_force_jump + .after(azalea_entity::clamp_look_direction) + .before(azalea_entity::update_bounding_box), ) - .add_systems( - FixedUpdate, - (ai_step, travel) - .chain() - .in_set(PhysicsSet) - .after(azalea_entity::update_bounding_box), - ); + .add_systems(FixedUpdate, (ai_step, travel).chain().in_set(PhysicsSet)); } } @@ -173,7 +169,7 @@ pub fn ai_step( #[derive(Event)] pub struct ForceJumpEvent(pub Entity); -pub fn force_jump_listener( +pub fn handle_force_jump( mut query: Query<( &mut Physics, &Position, -- cgit v1.2.3