Skip to content

Commit fb92f65

Browse files
committed
doc and typo fix
1 parent 5c3ea8e commit fb92f65

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

azalea/src/pathfinder/custom_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ pub struct CustomPathfinderState(pub Arc<RwLock<CustomPathfinderStateRef>>);
2525
/// Arbitrary state that's passed to the pathfinder, intended to be used for
2626
/// custom moves that need to access things that are usually inaccessible.
2727
///
28-
/// This is included in [`PathfinderCtx`].
28+
/// This is included in [`MovesCtx`].
2929
///
30-
/// [`PathfinderCtx`]: crate::pathfinder::PathfinderCtx
30+
/// [`MovesCtx`]: crate::pathfinder::MovesCtx
3131
#[derive(Debug, Default)]
3232
pub struct CustomPathfinderStateRef {
3333
map: FxHashMap<TypeId, Box<dyn Any + Send + Sync>>,

azalea/src/pathfinder/moves/parkour.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fn execute_parkour_move(mut ctx: ExecuteCtx) {
239239
if !ctx.physics.on_ground() && ctx.physics.velocity.y.abs() < 0.1 {
240240
let should_sneak = {
241241
let world = ctx.world.read();
242-
let pos_above = ctx.position.up(1.62 + 0.3);
242+
let pos_above = ctx.position.up(1.8 + 0.1);
243243
let block_pos_above = BlockPos::from(pos_above);
244244
let block_pos_above_plus_velocity =
245245
BlockPos::from(pos_above + ctx.physics.velocity.with_y(0.) * 4.);

0 commit comments

Comments
 (0)