From 2c8b7c5c2c9297273abfba8f7743f1bc25f166b1 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 28 Sep 2025 13:10:04 -0545 Subject: upgrade bevy to 0.17.0-rc.2 --- azalea-client/src/plugins/login.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'azalea-client/src/plugins/login.rs') diff --git a/azalea-client/src/plugins/login.rs b/azalea-client/src/plugins/login.rs index 05e45cae..25919c8c 100644 --- a/azalea-client/src/plugins/login.rs +++ b/azalea-client/src/plugins/login.rs @@ -23,12 +23,12 @@ impl Plugin for LoginPlugin { } } -fn handle_receive_hello_event(trigger: Trigger, mut commands: Commands) { +fn handle_receive_hello_event(receive_hello: On, mut commands: Commands) { let task_pool = IoTaskPool::get(); - let account = trigger.account.clone(); - let packet = trigger.packet.clone(); - let player = trigger.target(); + let account = receive_hello.account.clone(); + let packet = receive_hello.packet.clone(); + let player = receive_hello.entity; let task = task_pool.spawn(auth_with_account(account, packet)); commands.entity(player).insert(AuthTask(task)); @@ -149,7 +149,7 @@ pub async fn auth_with_account( pub fn reply_to_custom_queries( mut commands: Commands, - mut events: EventReader, + mut events: MessageReader, ) { for event in events.read() { trace!("Maybe replying to custom query: {event:?}"); -- cgit v1.2.3