aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
authorShayne Hartford <shaybox@shaybox.com>2024-11-23 03:29:30 -0500
committerGitHub <noreply@github.com>2024-11-23 02:29:30 -0600
commitdfdc3144b61b6750ad62fb493b7c00c6c820c90b (patch)
tree0cca5bcea62b3562152944b278c494401531d4d7 /azalea/src/pathfinder
parente443c5d76e706132ab554e97513d2b159f4ab0a1 (diff)
downloadazalea-drasl-dfdc3144b61b6750ad62fb493b7c00c6c820c90b.tar.xz
Update and merge the dependencies (#187)
* Add rust rover to .gitignore * Fold dependency feature lists * Sort dependencies alphabetically * Update dependencies * Upgrade dependencies * Comment out unused dependencies * Nightly is broken right now :) * Fix conflict with derive_more * cargo autoinherit to merge dependencies * Fix clippy lints
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/simulation.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs
index a24a1acb..ae76896c 100644
--- a/azalea/src/pathfinder/simulation.rs
+++ b/azalea/src/pathfinder/simulation.rs
@@ -154,8 +154,7 @@ impl Simulation {
pub fn is_mining(&self) -> bool {
// return true if the component is present and Some
self.get_component::<azalea_client::mining::MineBlockPos>()
- .map(|c| *c)
- .flatten()
+ .and_then(|c| *c)
.is_some()
}
}