From 268c62587e090c72b67a29e1cc42cda6c9d7340b Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 18 Jan 2026 09:50:45 -1245 Subject: add simulation-based pathfinder execution engine --- azalea/src/pathfinder/debug.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea/src/pathfinder/debug.rs') 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.) -- cgit v1.2.3