Skip to content

Commit b56e2d1

Browse files
committed
don't panic if disconnected while mining
1 parent 86609d3 commit b56e2d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

azalea-client/src/plugins/disconnect.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use super::login::IsAuthenticated;
1414
#[cfg(feature = "online-mode")]
1515
use crate::chat_signing;
1616
use crate::{
17-
client::JoinedClientBundle, connection::RawConnection, local_player::InstanceHolder,
17+
client::JoinedClientBundle, connection::RawConnection, local_player::InstanceHolder, mining,
1818
tick_counter::TicksConnected,
1919
};
2020

@@ -79,6 +79,10 @@ pub struct RemoveOnDisconnectBundle {
7979
pub has_client_loaded: HasClientLoaded,
8080
// TickCounter is reset on reconnect
8181
pub ticks_alive: TicksConnected,
82+
83+
// the rest of the mining components are already removed, as JoinedClientBundle includes
84+
// MineBundle
85+
pub mining: mining::Mining,
8286
}
8387

8488
/// A system that removes the several components from our clients when they get

0 commit comments

Comments
 (0)