From 1ca1f1d9e27aeea3adaf359570f2e211e0a9af74 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Thu, 1 Jan 2026 22:28:53 -0600 Subject: Extensible Account (#301) * refactor Account * clean up implementation and docs * add AccountTrait::join * update changelog * update example --- azalea/src/client_impl/entity_query.rs | 2 +- azalea/src/client_impl/mod.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea/src/client_impl') diff --git a/azalea/src/client_impl/entity_query.rs b/azalea/src/client_impl/entity_query.rs index 268eaaf1..44fbe9e8 100644 --- a/azalea/src/client_impl/entity_query.rs +++ b/azalea/src/client_impl/entity_query.rs @@ -189,7 +189,7 @@ impl Client { &self, predicate: impl EntityPredicate, ) -> Option { - let instance_name = self.get_component::()?; + let instance_name = self.get_component::()?.clone(); predicate.find_any(self.ecs.clone(), &instance_name) } diff --git a/azalea/src/client_impl/mod.rs b/azalea/src/client_impl/mod.rs index e3876f2e..db9ecf91 100644 --- a/azalea/src/client_impl/mod.rs +++ b/azalea/src/client_impl/mod.rs @@ -2,7 +2,8 @@ use std::{collections::HashMap, sync::Arc}; use azalea_auth::game_profile::GameProfile; use azalea_client::{ - Account, DefaultPlugins, + DefaultPlugins, + account::Account, connection::RawConnection, disconnect::DisconnectEvent, join::{ConnectOpts, StartJoinServerEvent}, -- cgit v1.2.3