From 8dc511bb1b77da67d5428e8bafeab92ad3bfabf4 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 6 Mar 2026 11:12:07 +0500 Subject: fix various regressions from optimization attempts --- azalea/src/pathfinder/mod.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'azalea/src/pathfinder/mod.rs') diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 6f1a0d8a..0269389b 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -82,8 +82,11 @@ impl Plugin for PathfinderPlugin { app.add_message::() .add_message::() .add_message::() - .add_systems(GameTick, debug_render_path_with_particles) - .add_systems(PreUpdate, add_default_pathfinder) + .add_systems( + GameTick, + debug_render_path_with_particles.in_set(PathfinderSystems), + ) + .add_systems(PreUpdate, add_default_pathfinder.in_set(PathfinderSystems)) .add_systems( Update, ( @@ -95,12 +98,16 @@ impl Plugin for PathfinderPlugin { ) .chain() .before(MoveEventsSystems) - .before(InventorySystems), + .before(InventorySystems) + .in_set(PathfinderSystems), ) .add_plugins(DefaultPathfinderExecutionPlugin); } } +#[derive(Clone, Debug, Eq, Hash, PartialEq, SystemSet)] +pub struct PathfinderSystems; + /// A component that makes this client able to pathfind. #[derive(Clone, Component, Default)] #[non_exhaustive] -- cgit v1.2.3