diff --git a/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs b/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs index 31c9f7ff833..f58da3b037f 100644 --- a/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs +++ b/Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs @@ -226,6 +226,11 @@ private void CreatePresetVote(ICommonSession? initiator) { var presets = GetGamePresets(); + // Sunrise-Start + if (presets.Count < 1) + return; + // Sunrise-End + var alone = _playerManager.PlayerCount == 1 && initiator != null; var options = new VoteOptions { @@ -594,7 +599,7 @@ private void TimeoutStandardVote(StandardVoteType type) private Dictionary GetGamePresets() { var presets = new Dictionary(); - + var prototypeId = _cfg.GetCVar(SunriseCCVars.RoundVotingChancesPrototype); if (!_prototypeManager.TryIndex(prototypeId, out var chancesPrototype))