aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src/lib.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-08-25 23:28:19 -0500
committermat <git@matdoes.dev>2023-08-25 23:28:19 -0500
commit472496b7b808b4c6ac6f8e161a5bc1d08f5b0524 (patch)
treeb839d9c63829c3e215940f05cdcf0b17cd226300 /azalea-physics/src/lib.rs
parent2773146fbfd9b61c0ea09210b6d7b9760be5e7dc (diff)
downloadazalea-drasl-472496b7b808b4c6ac6f8e161a5bc1d08f5b0524.tar.xz
fix all bevy ambiguities
Diffstat (limited to 'azalea-physics/src/lib.rs')
-rw-r--r--azalea-physics/src/lib.rs14
1 files changed, 5 insertions, 9 deletions
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::<ForceJumpEvent>()
.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,