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-client/src/plugins/join.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'azalea-client/src/plugins/join.rs') diff --git a/azalea-client/src/plugins/join.rs b/azalea-client/src/plugins/join.rs index 058f6c10..c254bc26 100644 --- a/azalea-client/src/plugins/join.rs +++ b/azalea-client/src/plugins/join.rs @@ -20,7 +20,8 @@ use tokio::sync::mpsc; use tracing::{debug, warn}; use crate::{ - Account, LocalPlayerBundle, + LocalPlayerBundle, + account::Account, connection::RawConnection, packet::login::{InLoginState, SendLoginPacketEvent}, }; @@ -94,7 +95,7 @@ pub fn handle_start_join_server_event( connection_query: Query<&RawConnection>, ) { for event in events.read() { - let uuid = event.account.uuid_or_offline(); + let uuid = event.account.uuid(); let entity = if let Some(entity) = entity_uuid_index.get(&uuid) { debug!("Reusing entity {entity:?} for client"); @@ -228,8 +229,8 @@ pub fn poll_create_connection_task( commands.trigger(SendLoginPacketEvent::new( entity, ServerboundHello { - name: account.username.clone(), - profile_id: account.uuid_or_offline(), + name: account.username().to_owned(), + profile_id: account.uuid(), }, )); } -- cgit v1.2.3