aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/nearest_entity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples/nearest_entity.rs')
-rw-r--r--azalea/examples/nearest_entity.rs4
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;