From e0d3352a90ddbdeb06314e6f38d2afe6fa4ddd78 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 7 May 2025 20:50:29 +0000 Subject: add chat signing --- azalea-client/src/plugins/disconnect.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'azalea-client/src/plugins/disconnect.rs') diff --git a/azalea-client/src/plugins/disconnect.rs b/azalea-client/src/plugins/disconnect.rs index 987007c2..3e27eba3 100644 --- a/azalea-client/src/plugins/disconnect.rs +++ b/azalea-client/src/plugins/disconnect.rs @@ -7,7 +7,7 @@ use bevy_ecs::prelude::*; use derive_more::Deref; use tracing::info; -use crate::{InstanceHolder, client::JoinedClientBundle, connection::RawConnection}; +use crate::{InstanceHolder, chat_signing, client::JoinedClientBundle, connection::RawConnection}; pub struct DisconnectPlugin; impl Plugin for DisconnectPlugin { @@ -70,7 +70,9 @@ pub fn remove_components_from_disconnected_players( // this makes it close the tcp connection .remove::() // this makes it not send DisconnectEvent again - .remove::(); + .remove::() + // resend our chat signing certs next time + .remove::(); // note that we don't remove the client from the ECS, so if they decide // to reconnect they'll keep their state -- cgit v1.2.3