diff options
Diffstat (limited to 'azalea/src/pathfinder/moves/basic.rs')
| -rw-r--r-- | azalea/src/pathfinder/moves/basic.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 4955ed08..d23bb894 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -135,7 +135,10 @@ fn execute_ascend_move(mut ctx: ExecuteCtx) { } if BlockPos::from(position) == start { - ctx.jump(); + // only jump if the target is more than 0.5 blocks above us + if target.y as f64 - position.y > 0.5 { + ctx.jump(); + } } } #[must_use] |
