aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves.rs
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2022-11-15 20:38:32 +0000
committerUbuntu <github@matdoes.dev>2022-11-15 20:38:32 +0000
commit614c0df0537567c75f781df7affc091a4a466226 (patch)
treeffd4b23e4692cbdd6c966d389901fbe24d0ad76b /azalea/src/pathfinder/moves.rs
parent9f78b3f4a7229033a3f5acaad6c8fffbe24e3e75 (diff)
downloadazalea-drasl-614c0df0537567c75f781df7affc091a4a466226.tar.xz
clippy
Diffstat (limited to 'azalea/src/pathfinder/moves.rs')
-rw-r--r--azalea/src/pathfinder/moves.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/moves.rs b/azalea/src/pathfinder/moves.rs
index ed98b70d..a08d4b80 100644
--- a/azalea/src/pathfinder/moves.rs
+++ b/azalea/src/pathfinder/moves.rs
@@ -29,7 +29,7 @@ fn is_passable(pos: &BlockPos, dim: &Dimension) -> bool {
/// Whether we can stand in this position. Checks if the block below is solid,
/// and that the two blocks above that are passable.
fn is_standable(pos: &BlockPos, dim: &Dimension) -> bool {
- is_block_solid(&pos.down(1), dim) && is_passable(&pos, dim)
+ is_block_solid(&pos.down(1), dim) && is_passable(pos, dim)
}
const JUMP_COST: f32 = 0.5;