aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/pathfinder/moves')
-rw-r--r--azalea/src/pathfinder/moves/parkour.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/moves/parkour.rs b/azalea/src/pathfinder/moves/parkour.rs
index 0f279dca..1d35f323 100644
--- a/azalea/src/pathfinder/moves/parkour.rs
+++ b/azalea/src/pathfinder/moves/parkour.rs
@@ -1,5 +1,6 @@
use azalea_client::{SprintDirection, WalkDirection};
use azalea_core::{direction::CardinalDirection, position::BlockPos};
+use tracing::trace;
use super::{Edge, ExecuteCtx, IsReachedCtx, MoveData, PathfinderCtx};
use crate::pathfinder::{astar, costs::*};
@@ -212,12 +213,14 @@ fn execute_parkour_move(mut ctx: ExecuteCtx) {
if !is_at_start_block
&& !is_at_jump_block
&& (position.y - start.y as f64) < 0.094
- && distance_from_start < 0.81
+ && distance_from_start < 0.85
{
// we have to be on the start block to jump
ctx.look_at(start_center);
+ trace!("looking at start_center");
} else {
ctx.look_at(target_center);
+ trace!("looking at target_center");
}
if !is_at_start_block && is_at_jump_block && distance_from_start > required_distance_from_center