aboutsummaryrefslogtreecommitdiff
path: root/azalea-physics/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-13 09:54:22 +0930
committermat <git@matdoes.dev>2025-10-13 09:54:22 +0930
commit5f6ebb98c9ef5775ed5fe39662436b83a3108aa6 (patch)
tree950161fb4577a03abdaf599f8b014da4ac10f014 /azalea-physics/src
parent51198a48ed0797ae80a35d6f3540cf6285ec52d8 (diff)
downloadazalea-drasl-5f6ebb98c9ef5775ed5fe39662436b83a3108aa6.tar.xz
don't fall when the last pathfinder node is slippery
Diffstat (limited to 'azalea-physics/src')
-rw-r--r--azalea-physics/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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