diff options
| author | mat <git@matdoes.dev> | 2026-03-06 11:12:07 +0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-06 11:12:07 +0500 |
| commit | 8dc511bb1b77da67d5428e8bafeab92ad3bfabf4 (patch) | |
| tree | b155417c3470412bc9dcf2f39f8440f71c805335 /azalea/src/pathfinder/mod.rs | |
| parent | 62eb3ec38cca04ac09156bb2693a9f8ca82b3da6 (diff) | |
| download | azalea-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.rs | 13 |
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] |
