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/chat/handler.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/chat/handler.rs')
| -rw-r--r-- | azalea-client/src/plugins/chat/handler.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/azalea-client/src/plugins/chat/handler.rs b/azalea-client/src/plugins/chat/handler.rs index 626ce7c2..703a9846 100644 --- a/azalea-client/src/plugins/chat/handler.rs +++ b/azalea-client/src/plugins/chat/handler.rs @@ -9,7 +9,7 @@ use bevy_ecs::prelude::*; use super::ChatKind; use crate::packet::game::SendGamePacketEvent; #[cfg(feature = "online-mode")] -use crate::{Account, chat_signing::ChatSigningSession}; +use crate::{account::Account, chat_signing::ChatSigningSession}; /// Send a chat packet to the server of a specific kind (chat message or /// command). Usually you just want [`SendChatEvent`] instead. @@ -99,11 +99,12 @@ pub fn create_signature( ) -> azalea_crypto::signing::MessageSignature { use azalea_crypto::signing::SignChatMessageOptions; - let certs = account.certs.lock(); - let certs = certs.as_ref().expect("certs shouldn't be set back to None"); + let certs = account + .certs() + .expect("certs shouldn't be set back to None"); let signature = azalea_crypto::signing::sign_chat_message(&SignChatMessageOptions { - account_uuid: account.uuid.expect("account must have a uuid"), + account_uuid: account.uuid(), chat_session_uuid: chat_session.session_id, message_index: chat_session.messages_sent, salt, |
