aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/goals.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-28 01:48:25 +0000
committermat <git@matdoes.dev>2024-12-28 01:48:25 +0000
commitebaf5128fbc87970b2ba1f6157e5da035ae379c8 (patch)
tree7b9ee030fd6c9551bc3c8f3695f66e9f452de8ac /azalea/src/pathfinder/goals.rs
parent5693191b57973136188bdade2144a69ac61a9f8a (diff)
downloadazalea-drasl-ebaf5128fbc87970b2ba1f6157e5da035ae379c8.tar.xz
better pathfinder debug messages
Diffstat (limited to 'azalea/src/pathfinder/goals.rs')
-rw-r--r--azalea/src/pathfinder/goals.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/pathfinder/goals.rs b/azalea/src/pathfinder/goals.rs
index 531e4036..0fb72446 100644
--- a/azalea/src/pathfinder/goals.rs
+++ b/azalea/src/pathfinder/goals.rs
@@ -1,6 +1,6 @@
//! The goals that a pathfinder can try to reach.
-use std::f32::consts::SQRT_2;
+use std::{f32::consts::SQRT_2, fmt::Debug};
use azalea_core::position::{BlockPos, Vec3};
use azalea_world::ChunkStorage;
@@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
use super::costs::{COST_HEURISTIC, FALL_N_BLOCKS_COST, JUMP_ONE_BLOCK_COST};
-pub trait Goal {
+pub trait Goal: Debug {
#[must_use]
fn heuristic(&self, n: BlockPos) -> f32;
#[must_use]