diff options
| author | mat <git@matdoes.dev> | 2026-01-28 15:26:27 -0200 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-28 15:26:27 -0200 |
| commit | b0d0bd17f5978abb4e69ce5391622799e2185992 (patch) | |
| tree | f0432a08c8e18aa29d507c0132dd4f8a30601b27 /azalea-client | |
| parent | 92af7be5e9b9ddbb9b4edf81178a915b864edf8c (diff) | |
| download | azalea-drasl-b0d0bd17f5978abb4e69ce5391622799e2185992.tar.xz | |
don't panic if disconnected while mining
Diffstat (limited to 'azalea-client')
| -rw-r--r-- | azalea-client/src/plugins/disconnect.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-client/src/plugins/disconnect.rs b/azalea-client/src/plugins/disconnect.rs index be98383b..cffd18f7 100644 --- a/azalea-client/src/plugins/disconnect.rs +++ b/azalea-client/src/plugins/disconnect.rs @@ -14,7 +14,7 @@ use super::login::IsAuthenticated; #[cfg(feature = "online-mode")] use crate::chat_signing; use crate::{ - client::JoinedClientBundle, connection::RawConnection, local_player::WorldHolder, + client::JoinedClientBundle, connection::RawConnection, local_player::WorldHolder, mining, tick_counter::TicksConnected, }; @@ -79,6 +79,10 @@ pub struct RemoveOnDisconnectBundle { pub has_client_loaded: HasClientLoaded, // TickCounter is reset on reconnect pub ticks_alive: TicksConnected, + + // the rest of the mining components are already removed, as JoinedClientBundle includes + // MineBundle + pub mining: mining::Mining, } /// A system that removes the several components from our clients when they get |
