From eb8887e1ed310d1c458cab2e149896ef424337a2 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sun, 10 Sep 2023 09:11:48 -0500 Subject: [PATCH] Restore original `SystemSet` configuration. --- src/exploration.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exploration.rs b/src/exploration.rs index 9838c86..a1443e3 100644 --- a/src/exploration.rs +++ b/src/exploration.rs @@ -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); } } }