diff options
| author | mat <git@matdoes.dev> | 2026-05-08 17:20:24 -0100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-08 17:20:24 -0100 |
| commit | c963b0a5fbe57423ccda0c3b2bfe108439dd895c (patch) | |
| tree | 0fd5bf9afe338be979048d492ec18332cb4a222a /azalea/src/pathfinder/moves | |
| parent | 5e0484c925bd7dd7c1d05fdfaf9cee2e66c07dea (diff) | |
| download | azalea-drasl-c963b0a5fbe57423ccda0c3b2bfe108439dd895c.tar.xz | |
several stability fixes for pathfinder when doing long paths
Diffstat (limited to 'azalea/src/pathfinder/moves')
| -rw-r--r-- | azalea/src/pathfinder/moves/parkour.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/moves/parkour.rs b/azalea/src/pathfinder/moves/parkour.rs index c95d436b..80bc4e7c 100644 --- a/azalea/src/pathfinder/moves/parkour.rs +++ b/azalea/src/pathfinder/moves/parkour.rs @@ -236,13 +236,13 @@ fn execute_parkour_move(mut ctx: ExecuteCtx) { // it's possible to hit our heads on a block when doing certain jumps (which // resets our horizontal velocity), but we can avoid that by sneaking - if !ctx.physics.on_ground() && ctx.physics.velocity.y.abs() < 0.1 { + if !ctx.physics.on_ground() && ctx.physics.velocity.y.abs() < 0.25 { let should_sneak = { let world = ctx.world.read(); - let pos_above = ctx.position.up(1.8 + 0.1); + let pos_above = ctx.position.up(1.8 + 0.25); 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.); + BlockPos::from(pos_above + ctx.physics.velocity.with_y(0.) * 5.); let block_above = world.get_block_state(block_pos_above).unwrap_or_default(); let block_above_plus_velocity = world |
