aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-07-23 22:17:17 -0500
committermat <git@matdoes.dev>2023-07-23 22:17:17 -0500
commitd99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 (patch)
tree08af266f9ccc9a6dea7593198bfe50dab2a307eb /azalea/src/pathfinder
parent2ab16402de3ac12c04696833450cd8d2f7b39b85 (diff)
downloadazalea-drasl-d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99.tar.xz
clean up azalea-entity a little
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/astar.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/astar.rs b/azalea/src/pathfinder/astar.rs
index 65caf337..0bdd0f17 100644
--- a/azalea/src/pathfinder/astar.rs
+++ b/azalea/src/pathfinder/astar.rs
@@ -106,6 +106,6 @@ impl<W: PartialOrd + Debug> Ord for Weight<W> {
impl<W: PartialOrd + Debug> Eq for Weight<W> {}
impl<W: PartialOrd + Debug> PartialOrd for Weight<W> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
- self.0.partial_cmp(&other.0)
+ Some(self.cmp(other))
}
}