Fix end of match being able to alter state even after the match has finished
This commit is contained in:
+4
-1
@@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user