From 82ed61687b74ac31e37dc00510c9d4186ffa50ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eero=20H=C3=A4ih=C3=A4l=C3=A4?= Date: Fri, 22 Nov 2024 01:27:29 +0200 Subject: [PATCH] Make prod build not crash --- client/lib/src/player_state_management/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/lib/src/player_state_management/mod.rs b/client/lib/src/player_state_management/mod.rs index 698f0b4f..46733c28 100644 --- a/client/lib/src/player_state_management/mod.rs +++ b/client/lib/src/player_state_management/mod.rs @@ -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,