diff options
| -rw-r--r-- | Cargo.lock | 1 | ||||
| -rwxr-xr-x | azalea/Cargo.toml | 1 | ||||
| -rw-r--r-- | azalea/src/pathfinder/mod.rs | 7 | ||||
| -rwxr-xr-x | bot/src/main.rs | 4 |
4 files changed, 8 insertions, 5 deletions
@@ -120,6 +120,7 @@ dependencies = [ "azalea-protocol", "azalea-world", "env_logger", + "log", "num-traits", "parking_lot", "priority-queue", diff --git a/azalea/Cargo.toml b/azalea/Cargo.toml index 846abad5..aac249c8 100755 --- a/azalea/Cargo.toml +++ b/azalea/Cargo.toml @@ -17,6 +17,7 @@ azalea-core = {version = "0.3.0", path = "../azalea-core"} azalea-physics = { version = "0.3.0", path = "../azalea-physics" } azalea-protocol = {version = "0.3.0", path = "../azalea-protocol"} azalea-world = { version = "0.3.0", path = "../azalea-world" } +log = "0.4.17" num-traits = "0.2.15" parking_lot = {version = "^0.12.1", features = ["deadlock_detection"]} priority-queue = "1.3.0" diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 6f31512e..f119c645 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -6,6 +6,7 @@ use crate::{Client, Event}; use async_trait::async_trait; use azalea_core::{BlockPos, CardinalDirection}; use azalea_world::entity::EntityData; +use log::debug; use mtdstarlite::Edge; pub use mtdstarlite::MTDStarLite; use parking_lot::Mutex; @@ -47,7 +48,7 @@ impl Trait for azalea_client::Client { vertical_vel: VerticalVel::None, }; let end = goal.goal_node(); - println!("start: {:?}, end: {:?}", start, end); + debug!("start: {start:?}, end: {end:?}"); let possible_moves: Vec<&dyn moves::Move> = vec