fix traitor game mode (#12303)

This commit is contained in:
Rane
2022-10-30 22:02:42 -04:00
committed by GitHub
parent 75e385f762
commit 05152d39ac

View File

@@ -71,13 +71,6 @@ public sealed class TraitorRuleSystem : GameRuleSystem
if (!RuleAdded)
return;
// If the current preset doesn't explicitly contain the traitor game rule, just carry on and remove self.
if (_gameTicker.Preset?.Rules.Contains(Prototype) ?? false)
{
_gameTicker.EndGameRule(_prototypeManager.Index<GameRulePrototype>(Prototype));
return;
}
var minPlayers = _cfg.GetCVar(CCVars.TraitorMinPlayers);
if (!ev.Forced && ev.Players.Length < minPlayers)
{