aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/join.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-28 14:31:41 +0500
committermat <git@matdoes.dev>2025-12-28 14:31:41 +0500
commit7ab3b8924f64f7eadb6b8928b6fae73cb06e4c2f (patch)
tree5add5d27fd7c2638ebe6fab9bd7adcdae28a358d /azalea-client/src/plugins/join.rs
parent9513f42e87f64c409cdb2a100500a50e5a713bac (diff)
downloadazalea-drasl-7ab3b8924f64f7eadb6b8928b6fae73cb06e4c2f.tar.xz
move Event and auto_reconnect to the azalea crate
Diffstat (limited to 'azalea-client/src/plugins/join.rs')
-rw-r--r--azalea-client/src/plugins/join.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/azalea-client/src/plugins/join.rs b/azalea-client/src/plugins/join.rs
index b1759992..058f6c10 100644
--- a/azalea-client/src/plugins/join.rs
+++ b/azalea-client/src/plugins/join.rs
@@ -19,7 +19,6 @@ use parking_lot::RwLock;
use tokio::sync::mpsc;
use tracing::{debug, warn};
-use super::events::LocalPlayerEvents;
use crate::{
Account, LocalPlayerBundle,
connection::RawConnection,
@@ -51,7 +50,6 @@ impl Plugin for JoinPlugin {
pub struct StartJoinServerEvent {
pub account: Account,
pub connect_opts: ConnectOpts,
- pub event_sender: Option<mpsc::UnboundedSender<crate::Event>>,
// this is mpsc instead of oneshot so it can be cloned (since it's sent in an event)
pub start_join_callback_tx: Option<mpsc::UnboundedSender<Entity>>,
@@ -147,12 +145,6 @@ pub fn handle_start_join_server_event(
// immediately when the connection is created
));
- if let Some(event_sender) = &event.event_sender {
- // this is optional so we don't leak memory in case the user doesn't want to
- // handle receiving packets
- entity_mut.insert(LocalPlayerEvents(event_sender.clone()));
- }
-
let task_pool = IoTaskPool::get();
let connect_opts = event.connect_opts.clone();
let task = task_pool.spawn(async_compat::Compat::new(