diff --git a/src/game.rs b/src/game.rs index 9ec7c5b..0c71e35 100644 --- a/src/game.rs +++ b/src/game.rs @@ -51,7 +51,7 @@ impl Plugin for GamePlugin { .run_if(on_event::()), ); app.add_systems(Update, check_achievements.run_if(game_running)); - app.add_systems(Update, handle_race.run_if(game_running)); + app.add_systems(Update, handle_race.run_if(alive).run_if(game_running)); app.insert_resource(Id2Pos(HashMap::new())); app.insert_resource(Id2V(HashMap::new())); app.insert_resource(JupiterPos(DVec3::ZERO));