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/chat/handler.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'azalea-client/src/plugins/chat/handler.rs') 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, -- cgit v1.2.3