Skip to content

Commit

Permalink
Make prod build not crash
Browse files Browse the repository at this point in the history
  • Loading branch information
haihala committed Nov 21, 2024
1 parent 7e00b44 commit 82ed616
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/lib/src/player_state_management/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ impl Plugin for PlayerStateManagementPlugin {
.add_systems(OnEnter(MatchState::PreRound), setup_combat)
.add_systems(
RollbackSchedule,
side_switcher::sideswitcher.in_set(WAGStage::HouseKeeping),
side_switcher::sideswitcher
.run_if(in_state(InMatch))
.in_set(WAGStage::HouseKeeping),
)
.add_systems(
RollbackSchedule,
Expand Down

0 comments on commit 82ed616

Please sign in to comment.