From 3aba53afad71369af95733143fff2fdc7f6a1fe8 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 23 Aug 2025 11:24:07 -1000 Subject: handle AppExit event --- azalea/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea/src/lib.rs') diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 049fe2f0..7b4ec5ae 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -1,6 +1,5 @@ #![doc = include_str!("../README.md")] #![feature(type_changing_struct_update)] -#![feature(never_type)] pub mod accept_resource_packs; pub mod auto_respawn; @@ -33,6 +32,7 @@ pub use azalea_protocol as protocol; pub use azalea_registry as registry; pub use azalea_world as world; pub use bevy_app as app; +use bevy_app::AppExit; pub use bevy_ecs as ecs; pub use bot::*; use ecs::component::Component; @@ -215,7 +215,7 @@ where mut self, account: Account, address: impl TryInto, - ) -> Result { + ) -> Result { self.swarm.accounts = vec![(account, JoinOpts::default())]; if self.swarm.states.is_empty() { self.swarm.states = vec![S::default()]; @@ -230,7 +230,7 @@ where account: Account, address: impl TryInto, opts: JoinOpts, - ) -> Result { + ) -> Result { self.swarm.accounts = vec![(account, opts.clone())]; if self.swarm.states.is_empty() { self.swarm.states = vec![S::default()]; -- cgit v1.2.3