Restore original SystemSet configuration.

This commit is contained in:
Nolan Darilek 2023-09-10 09:11:48 -05:00
parent 96b7dcb091
commit eb8887e1ed

View File

@ -421,7 +421,8 @@ where
if !config.states.is_empty() {
let states = config.states;
for state in states {
app.add_systems(OnExit(state), cleanup);
app.configure_set(Update, Exploration.run_if(in_state(state.clone())))
.add_systems(OnExit(state), cleanup);
}
}
}