From f7c9419045470495fe76b0167d09d17c3cf4cc56 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 6 May 2025 10:58:48 -1000 Subject: pathfinder can now handle slabs, stairs, and dirt paths --- azalea/src/pathfinder/moves/basic.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'azalea/src/pathfinder/moves/basic.rs') 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] -- cgit v1.2.3