aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-12-27 22:02:00 -0600
committerGitHub <noreply@github.com>2025-12-27 22:02:00 -0600
commit9513f42e87f64c409cdb2a100500a50e5a713bac (patch)
treebb6aa8b6d50fddf967bcb1f759e023754ea84e49 /azalea/src/pathfinder
parent588902ba4a3965982bdd84d92b20c6f7613f3978 (diff)
downloadazalea-drasl-9513f42e87f64c409cdb2a100500a50e5a713bac.tar.xz
Move Client struct to azalea crate (#297)
* move the Client struct out of azalea-client into azalea * actually add client impls in azalea
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs
index 90b506e9..155261cc 100644
--- a/azalea/src/pathfinder/mod.rs
+++ b/azalea/src/pathfinder/mod.rs
@@ -66,9 +66,9 @@ use self::{
moves::{ExecuteCtx, IsReachedCtx, SuccessorsFn},
};
use crate::{
- WalkDirection,
+ Client, WalkDirection,
app::{App, Plugin},
- bot::{BotClientExt, JumpEvent, LookAtEvent},
+ bot::{JumpEvent, LookAtEvent},
ecs::{
component::Component,
entity::Entity,
@@ -229,7 +229,7 @@ pub trait PathfinderClientExt {
fn is_goto_target_reached(&self) -> bool;
}
-impl PathfinderClientExt for azalea_client::Client {
+impl PathfinderClientExt for Client {
async fn goto(&self, goal: impl Goal + 'static) {
self.goto_with_opts(goal, PathfinderOpts::new()).await;
}