diff options
| author | Kumpelinus <kumpelinus@jat.de> | 2025-07-21 22:28:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-21 15:28:41 -0500 |
| commit | df9d776ff8e3945ce7d367e6cecb54957ee0fd7a (patch) | |
| tree | aa72f41953fb05e69b660b092d13ecd76e77c1bd /azalea-client/src/plugins/disconnect.rs | |
| parent | ebc2e0c067d8b2c901ae02e032159e2c80eac7bc (diff) | |
| download | azalea-drasl-df9d776ff8e3945ce7d367e6cecb54957ee0fd7a.tar.xz | |
Add TicksAlive component (#229)
* Add TicksAlive component
* Rename TicksAlive to TicksConnected
* Move component to plugins/tick_counter.rs and add doc comment
Diffstat (limited to 'azalea-client/src/plugins/disconnect.rs')
| -rw-r--r-- | azalea-client/src/plugins/disconnect.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea-client/src/plugins/disconnect.rs b/azalea-client/src/plugins/disconnect.rs index 80993476..ab39ba5e 100644 --- a/azalea-client/src/plugins/disconnect.rs +++ b/azalea-client/src/plugins/disconnect.rs @@ -11,7 +11,7 @@ use tracing::info; use super::login::IsAuthenticated; use crate::{ chat_signing, client::JoinedClientBundle, connection::RawConnection, loading::HasClientLoaded, - local_player::InstanceHolder, + local_player::InstanceHolder, tick_counter::TicksConnected, }; pub struct DisconnectPlugin; @@ -72,6 +72,8 @@ pub struct RemoveOnDisconnectBundle { pub is_authenticated: IsAuthenticated, // send ServerboundPlayerLoaded next time we join. pub has_client_loaded: HasClientLoaded, + // TickCounter is reset on reconnect + pub ticks_alive: TicksConnected, } /// A system that removes the several components from our clients when they get |
