From fb92f65b3da49b6487bf6fa05010b12a3ab5d4ed Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 18 Jan 2026 08:41:46 +0600 Subject: doc and typo fix --- azalea/src/pathfinder/custom_state.rs | 4 ++-- azalea/src/pathfinder/moves/parkour.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/azalea/src/pathfinder/custom_state.rs b/azalea/src/pathfinder/custom_state.rs index f5129516..52af7687 100644 --- a/azalea/src/pathfinder/custom_state.rs +++ b/azalea/src/pathfinder/custom_state.rs @@ -25,9 +25,9 @@ pub struct CustomPathfinderState(pub Arc>); /// Arbitrary state that's passed to the pathfinder, intended to be used for /// custom moves that need to access things that are usually inaccessible. /// -/// This is included in [`PathfinderCtx`]. +/// This is included in [`MovesCtx`]. /// -/// [`PathfinderCtx`]: crate::pathfinder::PathfinderCtx +/// [`MovesCtx`]: crate::pathfinder::MovesCtx #[derive(Debug, Default)] pub struct CustomPathfinderStateRef { map: FxHashMap>, diff --git a/azalea/src/pathfinder/moves/parkour.rs b/azalea/src/pathfinder/moves/parkour.rs index d37c5751..c95d436b 100644 --- a/azalea/src/pathfinder/moves/parkour.rs +++ b/azalea/src/pathfinder/moves/parkour.rs @@ -239,7 +239,7 @@ fn execute_parkour_move(mut ctx: ExecuteCtx) { if !ctx.physics.on_ground() && ctx.physics.velocity.y.abs() < 0.1 { let should_sneak = { let world = ctx.world.read(); - let pos_above = ctx.position.up(1.62 + 0.3); + let pos_above = ctx.position.up(1.8 + 0.1); let block_pos_above = BlockPos::from(pos_above); let block_pos_above_plus_velocity = BlockPos::from(pos_above + ctx.physics.velocity.with_y(0.) * 4.); -- cgit v1.2.3