aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-06-01 21:01:31 -0545
committermat <git@matdoes.dev>2025-06-01 21:01:31 -0545
commit99659bd9a33fad276c2a5ecfb68f094c4f544d48 (patch)
tree531aceb09b3db86dde407e331d5b13bc5d821a4e /azalea/src/pathfinder/moves
parent1d3a7c969f430a8cea4296930df0d6c04e253747 (diff)
downloadazalea-drasl-99659bd9a33fad276c2a5ecfb68f094c4f544d48.tar.xz
add CustomPathfinderState
Diffstat (limited to 'azalea/src/pathfinder/moves')
-rw-r--r--azalea/src/pathfinder/moves/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/azalea/src/pathfinder/moves/mod.rs b/azalea/src/pathfinder/moves/mod.rs
index 88bae957..6c26a507 100644
--- a/azalea/src/pathfinder/moves/mod.rs
+++ b/azalea/src/pathfinder/moves/mod.rs
@@ -19,6 +19,7 @@ use parking_lot::RwLock;
use super::{
astar,
+ custom_state::CustomPathfinderStateRef,
mining::MiningCache,
rel_block_pos::RelBlockPos,
world::{CachedWorld, is_block_state_passable},
@@ -222,4 +223,6 @@ pub struct PathfinderCtx<'a> {
pub edges: &'a mut Vec<Edge>,
pub world: &'a CachedWorld,
pub mining_cache: &'a MiningCache,
+
+ pub custom_state: &'a CustomPathfinderStateRef,
}