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, 1 insertions, 3 deletions
diff --git a/azalea/src/pathfinder/debug.rs b/azalea/src/pathfinder/debug.rs
index 201803c9..a5e51cdf 100644
--- a/azalea/src/pathfinder/debug.rs
+++ b/azalea/src/pathfinder/debug.rs
@@ -55,8 +55,6 @@ pub fn debug_render_path_with_particles(
let mut start = executing_path.last_reached_node;
for (i, movement) in executing_path.path.iter().enumerate() {
- // /particle dust 0 1 1 1 ~ ~ ~ 0 0 0.2 0 100
-
let end = movement.target;
let start_vec3 = start.center();
@@ -91,7 +89,7 @@ pub fn debug_render_path_with_particles(
z: start_vec3.z + (end_vec3.z - start_vec3.z) * percent,
};
let particle_command = format!(
- "/particle dust {r} {g} {b} {size} {start_x} {start_y} {start_z} {delta_x} {delta_y} {delta_z} 0 {count}",
+ "/particle dust{{color:[{r},{g},{b}],scale:{size}}} {start_x} {start_y} {start_z} {delta_x} {delta_y} {delta_z} 0 {count}",
size = 1,
start_x = pos.x,
start_y = pos.y,