aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/debug.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src/pathfinder/debug.rs')
-rw-r--r--azalea/src/pathfinder/debug.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/pathfinder/debug.rs b/azalea/src/pathfinder/debug.rs
index b00e4272..6b319531 100644
--- a/azalea/src/pathfinder/debug.rs
+++ b/azalea/src/pathfinder/debug.rs
@@ -67,9 +67,9 @@ pub fn debug_render_path_with_particles(
let step_count = (start_vec3.distance_squared_to(&end_vec3).sqrt() * 4.0) as usize;
- let target_block_state = chunks.get_block_state(&movement.target).unwrap_or_default();
+ let target_block_state = chunks.get_block_state(movement.target).unwrap_or_default();
let above_target_block_state = chunks
- .get_block_state(&movement.target.up(1))
+ .get_block_state(movement.target.up(1))
.unwrap_or_default();
// this isn't foolproof, there might be another block that could be mined
// depending on the move, but it's good enough for debugging