diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-12 01:29:49 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-12 01:29:49 -0600 |
| commit | f4a3c53eee7d29bade0c074f402c4a45aa98eca8 (patch) | |
| tree | f25ec1d1390c5e96aba858141206a05812135b95 /azalea/examples/nearest_entity.rs | |
| parent | 7f761df3e7b72ce75be21ab9b3a533d0a5a938a5 (diff) | |
| download | azalea-drasl-f4a3c53eee7d29bade0c074f402c4a45aa98eca8.tar.xz | |
Delete `StartError` and `JoinError` (#296)
* delete StartError and JoinError
* update changelog
Diffstat (limited to 'azalea/examples/nearest_entity.rs')
| -rw-r--r-- | azalea/examples/nearest_entity.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/nearest_entity.rs b/azalea/examples/nearest_entity.rs index 19223589..a0385917 100644 --- a/azalea/examples/nearest_entity.rs +++ b/azalea/examples/nearest_entity.rs @@ -2,6 +2,7 @@ use azalea::{ ClientBuilder, bot::{Bot, LookAtEvent}, nearest_entity::EntityFinder, + prelude::*, }; use azalea_client::Account; use azalea_core::tick::GameTick; @@ -18,14 +19,13 @@ use bevy_ecs::{ }; #[tokio::main] -async fn main() { +async fn main() -> AppExit { let account = Account::offline("bot"); ClientBuilder::new() .add_plugins(LookAtStuffPlugin) .start(account, "localhost") .await - .unwrap(); } pub struct LookAtStuffPlugin; |
