aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/mod.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-03-06 11:12:07 +0500
committermat <git@matdoes.dev>2026-03-06 11:12:07 +0500
commit8dc511bb1b77da67d5428e8bafeab92ad3bfabf4 (patch)
treeb155417c3470412bc9dcf2f39f8440f71c805335 /azalea/src/pathfinder/mod.rs
parent62eb3ec38cca04ac09156bb2693a9f8ca82b3da6 (diff)
downloadazalea-drasl-8dc511bb1b77da67d5428e8bafeab92ad3bfabf4.tar.xz
fix various regressions from optimization attempts
Diffstat (limited to 'azalea/src/pathfinder/mod.rs')
-rw-r--r--azalea/src/pathfinder/mod.rs13
1 files changed, 10 insertions, 3 deletions
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::<GotoEvent>()
.add_message::<PathFoundEvent>()
.add_message::<StopPathfindingEvent>()
- .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]