aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-02 19:24:39 -1300
committermat <git@matdoes.dev>2025-06-03 02:41:25 -0600
commitcc3e64a3151398046408a7b97c339d32700cc541 (patch)
treef2ea5a27ae52b1dbb69997f61daf3a5f00369e94 /azalea-client/src
parent61443fa481aeb6f9b488bf9475c512554a58473d (diff)
downloadazalea-drasl-cc3e64a3151398046408a7b97c339d32700cc541.tar.xz
fix collisions bugs
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/client.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 02625326..f73e939b 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -338,13 +338,6 @@ impl Client {
/// Similar to [`Self::get_component`], but doesn't clone the component
/// since it's passed as a reference. [`Self::ecs`] will remain locked
/// while the callback is being run.
- ///
- /// ```
- /// # use azalea_client::{Client, mining::Mining};
- /// # fn example(bot: &Client) {
- /// let is_mining = bot.map_get_component::<Mining, _>(|m| m).is_some();
- /// # }
- /// ```
pub fn map_get_component<T: Component, R>(&self, f: impl FnOnce(&T) -> R) -> Option<R> {
let mut ecs = self.ecs.lock();
let value = self.query::<Option<&T>>(&mut ecs);