From 656162d2186444f70512af7012f87bfbf9da916a Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 25 Mar 2025 04:06:47 +0000 Subject: make events channel in Client::start_client optional --- azalea-client/src/test_simulation.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'azalea-client/src/test_simulation.rs') diff --git a/azalea-client/src/test_simulation.rs b/azalea-client/src/test_simulation.rs index 0f34c14e..13d65bbb 100644 --- a/azalea-client/src/test_simulation.rs +++ b/azalea-client/src/test_simulation.rs @@ -30,7 +30,6 @@ use uuid::Uuid; use crate::disconnect::DisconnectEvent; use crate::{ ClientInformation, GameProfileComponent, InConfigState, InstanceHolder, LocalPlayerBundle, - events::LocalPlayerEvents, raw_connection::{RawConnection, RawConnectionReader, RawConnectionWriter}, }; @@ -191,14 +190,11 @@ fn create_local_player_bundle( connection_protocol, }; - let (local_player_events_sender, _local_player_events_receiver) = mpsc::unbounded_channel(); - let instance = Instance::default(); let instance_holder = InstanceHolder::new(entity, Arc::new(RwLock::new(instance))); let local_player_bundle = LocalPlayerBundle { raw_connection, - local_player_events: LocalPlayerEvents(local_player_events_sender), game_profile: GameProfileComponent(GameProfile::new(Uuid::nil(), "azalea".to_owned())), client_information: ClientInformation::default(), instance_holder, -- cgit v1.2.3