aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/examples')
-rw-r--r--azalea/examples/nearest_entity.rs2
-rw-r--r--azalea/examples/testbot/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea/examples/nearest_entity.rs b/azalea/examples/nearest_entity.rs
index a0385917..418297b5 100644
--- a/azalea/examples/nearest_entity.rs
+++ b/azalea/examples/nearest_entity.rs
@@ -4,7 +4,7 @@ use azalea::{
nearest_entity::EntityFinder,
prelude::*,
};
-use azalea_client::Account;
+use azalea_client::account::Account;
use azalea_core::tick::GameTick;
use azalea_entity::{
LocalEntity, Position,
diff --git a/azalea/examples/testbot/main.rs b/azalea/examples/testbot/main.rs
index 9889e250..b2ad0b61 100644
--- a/azalea/examples/testbot/main.rs
+++ b/azalea/examples/testbot/main.rs
@@ -190,7 +190,7 @@ async fn handle(bot: Client, event: azalea::Event, state: State) -> anyhow::Resu
async fn swarm_handle(_swarm: Swarm, event: SwarmEvent, _state: SwarmState) -> anyhow::Result<()> {
match &event {
SwarmEvent::Disconnect(account, _join_opts) => {
- println!("bot got kicked! {}", account.username);
+ println!("bot got kicked! {}", account.username());
}
SwarmEvent::Chat(chat) => {
if chat.message().to_string() == "The particle was not visible for anybody" {