aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves/mod.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-01 14:43:51 -0500
committermat <git@matdoes.dev>2023-10-01 14:43:51 -0500
commita440c23a3b0f348fc89e504b4ef0ccb1dc3ec93a (patch)
treed2f46bfd4013d1626e5bb0028332fea512d3de4b /azalea/src/pathfinder/moves/mod.rs
parentaee48061cf7ba0db6f3d0bd87b044aeac9490f25 (diff)
downloadazalea-drasl-a440c23a3b0f348fc89e504b4ef0ccb1dc3ec93a.tar.xz
more reliable pathfinder parkour
Diffstat (limited to 'azalea/src/pathfinder/moves/mod.rs')
-rw-r--r--azalea/src/pathfinder/moves/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs
index 61dc8b68..f3ed7dff 100644
--- a/azalea/src/pathfinder/moves/mod.rs
+++ b/azalea/src/pathfinder/moves/mod.rs
@@ -127,10 +127,7 @@ pub fn default_move(world: &Instance, node: BlockPos) -> Vec<Edge> {
#[must_use]
pub fn default_is_reached(
IsReachedCtx {
- position,
- target,
- // physics,
- ..
+ position, target, ..
}: IsReachedCtx,
) -> bool {
BlockPos::from(position) == target