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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/debug.rs b/azalea/src/pathfinder/debug.rs
index da27708d..b1cc966e 100644
--- a/azalea/src/pathfinder/debug.rs
+++ b/azalea/src/pathfinder/debug.rs
@@ -54,7 +54,8 @@ pub fn debug_render_path_with_particles(
let chunks = &instance_holder.instance.read().chunks;
let mut start = executing_path.last_reached_node;
- for (i, movement) in executing_path.path.iter().enumerate() {
+ for (i, edge) in executing_path.path.iter().enumerate() {
+ let movement = &edge.movement;
let end = movement.target;
let start_vec3 = start.center();