Fix end of match being able to alter state even after the match has finished

This commit is contained in:
2026-09-29 11:40:59 +02:00
parent edf2927d4d
commit b9611c1b42
2 changed files with 14 additions and 2 deletions
+4 -1
View File
@@ -9,6 +9,8 @@
use bevy::prelude::*;
use bevy_ggrs::prelude::*;
use crate::match_runtime::match_is_ongoing;
#[derive(SystemSet, Debug, Clone, PartialEq, Eq, Hash)]
pub enum GameplaySet {
/// Turn this frame's netcode inputs into per-fighter input state.
@@ -47,7 +49,8 @@ impl Plugin for GameplaySchedulePlugin {
GameplaySet::Attacks,
GameplaySet::MatchRules,
)
.chain(),
.chain()
.run_if(match_is_ongoing),
);
}
}