Try reordering systems.

This commit is contained in:
Nolan Darilek 2021-05-23 12:23:56 -05:00
parent 1878ead9be
commit 0e9c231907
2 changed files with 3 additions and 1 deletions

View File

@ -373,7 +373,7 @@ impl Plugin for MapPlugin {
CoreStage::PostUpdate,
entity_indexing.system().label(UPDATE_ENTITY_INDEX_LABEL),
)
.add_system_to_stage(CoreStage::Update, add_areas.system())
.add_system(add_areas.system())
.add_system_to_stage(CoreStage::PostUpdate, add_areas.system());
if config.speak_area_descriptions {
app.add_system_to_stage(CoreStage::PostUpdate, area_description.system());

View File

@ -439,6 +439,7 @@ where
CoreStage::PostUpdate,
remove_blocks_motion
.system()
.after(crate::map::UPDATE_ENTITY_INDEX_LABEL)
.before(UPDATE_COLLISION_INDEX_LABEL),
)
.insert_resource(PreviousMonitorsCollisionsIndex::default())
@ -453,6 +454,7 @@ where
CoreStage::PostUpdate,
remove_monitors_collisions
.system()
.after(crate::map::UPDATE_ENTITY_INDEX_LABEL)
.before(UPDATE_COLLISION_INDEX_LABEL),
)
.add_system_to_stage(