From eeec59adabb8c084c8b6b847a31130eb7c37d2ee Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 12 Oct 2023 22:39:29 -0500 Subject: KnockbackEvent and rename Physics::delta to velocity --- azalea/src/pathfinder/moves/basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea/src/pathfinder/moves/basic.rs') 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; } -- cgit v1.2.3