diff options
| author | mat <git@matdoes.dev> | 2025-05-07 20:50:29 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-05-08 08:51:34 +1200 |
| commit | e0d3352a90ddbdeb06314e6f38d2afe6fa4ddd78 (patch) | |
| tree | 89e224255d7296f44b920a3fa872df1d87811ada /azalea-client/src/plugins/disconnect.rs | |
| parent | a8e76a0bff182bbcb7b40e9283f78efbac7e630c (diff) | |
| download | azalea-drasl-e0d3352a90ddbdeb06314e6f38d2afe6fa4ddd78.tar.xz | |
add chat signing
Diffstat (limited to 'azalea-client/src/plugins/disconnect.rs')
| -rw-r--r-- | azalea-client/src/plugins/disconnect.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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::<RawConnection>() // this makes it not send DisconnectEvent again - .remove::<IsConnectionAlive>(); + .remove::<IsConnectionAlive>() + // resend our chat signing certs next time + .remove::<chat_signing::ChatSigningSession>(); // note that we don't remove the client from the ECS, so if they decide // to reconnect they'll keep their state |
