diff options
| author | mat <git@matdoes.dev> | 2025-08-23 11:24:07 -1000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-08-23 11:24:07 -1000 |
| commit | 3aba53afad71369af95733143fff2fdc7f6a1fe8 (patch) | |
| tree | c7993bd8aa448c633e6909c594faed1f17c0b9bc /azalea/src/lib.rs | |
| parent | 776c8dbd5e1441a4345c0077025a180cad6f5666 (diff) | |
| download | azalea-drasl-3aba53afad71369af95733143fff2fdc7f6a1fe8.tar.xz | |
handle AppExit event
Diffstat (limited to 'azalea/src/lib.rs')
| -rw-r--r-- | azalea/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<ServerAddress>, - ) -> Result<!, StartError> { + ) -> Result<AppExit, StartError> { 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<ServerAddress>, opts: JoinOpts, - ) -> Result<!, StartError> { + ) -> Result<AppExit, StartError> { self.swarm.accounts = vec![(account, opts.clone())]; if self.swarm.states.is_empty() { self.swarm.states = vec![S::default()]; |
