diff options
| author | mat <git@matdoes.dev> | 2023-07-23 22:17:17 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-07-23 22:17:17 -0500 |
| commit | d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 (patch) | |
| tree | 08af266f9ccc9a6dea7593198bfe50dab2a307eb /azalea/src/pathfinder | |
| parent | 2ab16402de3ac12c04696833450cd8d2f7b39b85 (diff) | |
| download | azalea-drasl-d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99.tar.xz | |
clean up azalea-entity a little
Diffstat (limited to 'azalea/src/pathfinder')
| -rw-r--r-- | azalea/src/pathfinder/astar.rs | 2 |
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)) } } |
