diff options
| author | mat <git@matdoes.dev> | 2025-06-02 19:24:39 -1300 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-03 02:41:25 -0600 |
| commit | cc3e64a3151398046408a7b97c339d32700cc541 (patch) | |
| tree | f2ea5a27ae52b1dbb69997f61daf3a5f00369e94 /azalea-client/src | |
| parent | 61443fa481aeb6f9b488bf9475c512554a58473d (diff) | |
| download | azalea-drasl-cc3e64a3151398046408a7b97c339d32700cc541.tar.xz | |
fix collisions bugs
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 7 |
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); |
