diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2026-01-01 22:28:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-01 22:28:53 -0600 |
| commit | 1ca1f1d9e27aeea3adaf359570f2e211e0a9af74 (patch) | |
| tree | dd35bb9bff67f0622a6410c99b5bd1678c9c8299 /azalea-client/src/plugins/join.rs | |
| parent | 7b84235a9be5bdc7c05873467ad8310b57448d79 (diff) | |
| download | azalea-drasl-1ca1f1d9e27aeea3adaf359570f2e211e0a9af74.tar.xz | |
Extensible Account (#301)
* refactor Account
* clean up implementation and docs
* add AccountTrait::join
* update changelog
* update example
Diffstat (limited to 'azalea-client/src/plugins/join.rs')
| -rw-r--r-- | azalea-client/src/plugins/join.rs | 9 |
1 files changed, 5 insertions, 4 deletions
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(), }, )); } |
