diff options
| author | mat <git@matdoes.dev> | 2026-01-16 21:58:56 -0545 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-16 21:58:56 -0545 |
| commit | 02280dc6e2c559452f00eed9c5c23efa0d6cb5fe (patch) | |
| tree | 3f6c5589640bc79abc6696486b3fa8734c4f6802 /azalea/src/pathfinder/debug.rs | |
| parent | 43b7d6aad17eaf2656fcb8edc2122edfd93f539f (diff) | |
| download | azalea-drasl-02280dc6e2c559452f00eed9c5c23efa0d6cb5fe.tar.xz | |
better pathfinder swimming and other tweaks
Diffstat (limited to 'azalea/src/pathfinder/debug.rs')
| -rw-r--r-- | azalea/src/pathfinder/debug.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/debug.rs b/azalea/src/pathfinder/debug.rs index 7fe44919..42a64982 100644 --- a/azalea/src/pathfinder/debug.rs +++ b/azalea/src/pathfinder/debug.rs @@ -74,7 +74,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) + 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 (r, g, b): (f64, f64, f64) = if i == 0 { |
