diff options
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] |
