From 5f6ebb98c9ef5775ed5fe39662436b83a3108aa6 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 13 Oct 2025 09:54:22 +0930 Subject: don't fall when the last pathfinder node is slippery --- azalea-physics/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea-physics/src/lib.rs') diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs index b49d734c..ab9c2084 100644 --- a/azalea-physics/src/lib.rs +++ b/azalea-physics/src/lib.rs @@ -363,7 +363,7 @@ pub fn update_old_position(mut query: Query<(&mut Physics, &Position)>) { } } -fn get_block_pos_below_that_affects_movement(position: Position) -> BlockPos { +pub fn get_block_pos_below_that_affects_movement(position: Position) -> BlockPos { BlockPos::new( position.x.floor() as i32, // TODO: this uses bounding_box.min_y instead of position.y -- cgit v1.2.3