From b3af8d73faa2663e25e5688897720e57842f99ae Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 25 Apr 2025 01:10:03 -0100 Subject: update to bevy 0.16 --- azalea-client/src/plugins/disconnect.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'azalea-client/src/plugins/disconnect.rs') diff --git a/azalea-client/src/plugins/disconnect.rs b/azalea-client/src/plugins/disconnect.rs index 6b1abdeb..343c25d8 100644 --- a/azalea-client/src/plugins/disconnect.rs +++ b/azalea-client/src/plugins/disconnect.rs @@ -3,15 +3,7 @@ use azalea_chat::FormattedText; use azalea_entity::{EntityBundle, InLoadedChunk, LocalEntity, metadata::PlayerMetadataBundle}; use bevy_app::{App, Plugin, PostUpdate}; -use bevy_ecs::{ - component::Component, - entity::Entity, - event::{EventReader, EventWriter}, - prelude::Event, - query::{Changed, With}, - schedule::IntoSystemConfigs, - system::{Commands, Query}, -}; +use bevy_ecs::prelude::*; use derive_more::Deref; use tracing::info; @@ -101,7 +93,7 @@ fn disconnect_on_connection_dead( ) { for (entity, &is_connection_alive) in &query { if !*is_connection_alive { - disconnect_events.send(DisconnectEvent { + disconnect_events.write(DisconnectEvent { entity, reason: None, }); -- cgit v1.2.3