diff options
| author | mat <git@matdoes.dev> | 2026-05-06 03:36:16 -0100 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-05-07 08:05:58 -1200 |
| commit | 9ffd0e80bbb3feace231553d6539124585b03e3c (patch) | |
| tree | ad8df7d07df9f8f542e288c263d76b8ffd637416 /azalea/src/client_impl/mining.rs | |
| parent | 4d1f430408dc6854c1af5fb14b2641e293a9cf43 (diff) | |
| download | azalea-drasl-9ffd0e80bbb3feace231553d6539124585b03e3c.tar.xz | |
change panicking functions in Client and EntityRef to return an AzaleaResult instead
Diffstat (limited to 'azalea/src/client_impl/mining.rs')
| -rw-r--r-- | azalea/src/client_impl/mining.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/client_impl/mining.rs b/azalea/src/client_impl/mining.rs index 11c74480..daaf2b3f 100644 --- a/azalea/src/client_impl/mining.rs +++ b/azalea/src/client_impl/mining.rs @@ -16,7 +16,7 @@ impl Client { /// Returns true if the client is currently trying to mine a block. pub fn is_mining(&self) -> bool { - self.get_component::<Mining>().is_some() + self.component::<Mining>().is_ok() } /// When enabled, the bot will mine any block that it is looking at if it is |
