aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/debug.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-18 09:50:45 -1245
committermat <git@matdoes.dev>2026-01-19 05:35:49 +0700
commit268c62587e090c72b67a29e1cc42cda6c9d7340b (patch)
tree961d0b4d0bd22d17f4ad6c8b77f02f02566b838e /azalea/src/pathfinder/debug.rs
parentfb92f65b3da49b6487bf6fa05010b12a3ab5d4ed (diff)
downloadazalea-drasl-268c62587e090c72b67a29e1cc42cda6c9d7340b.tar.xz
add simulation-based pathfinder execution engine
Diffstat (limited to 'azalea/src/pathfinder/debug.rs')
-rw-r--r--azalea/src/pathfinder/debug.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/debug.rs b/azalea/src/pathfinder/debug.rs
index 42a64982..0a5f583d 100644
--- a/azalea/src/pathfinder/debug.rs
+++ b/azalea/src/pathfinder/debug.rs
@@ -3,6 +3,7 @@ use azalea_core::position::Vec3;
use bevy_ecs::prelude::*;
use super::ExecutingPath;
+use crate::pathfinder::moves::should_mine_block_state;
/// A component that makes bots run /particle commands while pathfinding to show
/// where they're going.
@@ -74,9 +75,8 @@ pub fn debug_render_path_with_particles(
// this isn't foolproof, there might be another block that could be mined
// depending on the move, but it's good enough for debugging
// purposes
- let is_mining = !(super::world::is_block_state_passable(target_block_state)
- || super::world::is_block_state_water(target_block_state))
- || !super::world::is_block_state_passable(above_target_block_state);
+ let is_mining = should_mine_block_state(target_block_state)
+ || should_mine_block_state(above_target_block_state);
let (r, g, b): (f64, f64, f64) = if i == 0 {
(0., 1., 0.)