Chain dependent systems.

This commit is contained in:
Nolan Darilek 2024-03-14 13:38:39 -05:00
parent e381109cad
commit 40047010fe

View File

@ -409,7 +409,7 @@ impl Plugin for PathfindingPlugin {
.register_type::<NoPath>() .register_type::<NoPath>()
.register_type::<Path>() .register_type::<Path>()
.register_type::<CostMap>() .register_type::<CostMap>()
.add_systems(PreUpdate, (negotiate_path, poll_tasks)) .add_systems(PreUpdate, (poll_tasks, negotiate_path).chain())
.add_systems( .add_systems(
PreUpdate, PreUpdate,
(actions, calculate_path) (actions, calculate_path)