diff options
| author | mat <git@matdoes.dev> | 2023-10-12 22:39:29 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-10-12 22:39:29 -0500 |
| commit | eeec59adabb8c084c8b6b847a31130eb7c37d2ee (patch) | |
| tree | 6ffa8e6d83ba5d6095062abf06406edf7f10d276 /azalea/src/pathfinder/moves/basic.rs | |
| parent | 79ad1e93bf6ce2b7c2da6925a7c85b33bb76f154 (diff) | |
| download | azalea-drasl-eeec59adabb8c084c8b6b847a31130eb7c37d2ee.tar.xz | |
KnockbackEvent and rename Physics::delta to velocity
Diffstat (limited to 'azalea/src/pathfinder/moves/basic.rs')
| -rw-r--r-- | azalea/src/pathfinder/moves/basic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 4780798c..957e24c6 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -97,7 +97,7 @@ fn execute_ascend_move(mut ctx: ExecuteCtx) { let side_distance = z_axis as f64 * (target_center.x - position.x).abs() + x_axis as f64 * (target_center.z - position.z).abs(); - let lateral_motion = x_axis as f64 * physics.delta.z + z_axis as f64 * physics.delta.x; + let lateral_motion = x_axis as f64 * physics.velocity.z + z_axis as f64 * physics.velocity.x; if lateral_motion > 0.1 { return; } |
