Skip to content

Commit

Permalink
фикс
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Nov 13, 2024
1 parent dab9664 commit ccec00c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Content.Server/Voting/Managers/VoteManager.DefaultVotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -594,7 +599,7 @@ private void TimeoutStandardVote(StandardVoteType type)
private Dictionary<string, string> GetGamePresets()
{
var presets = new Dictionary<string, string>();

var prototypeId = _cfg.GetCVar(SunriseCCVars.RoundVotingChancesPrototype);

if (!_prototypeManager.TryIndex<VoteRandomPrototype>(prototypeId, out var chancesPrototype))
Expand Down

0 comments on commit ccec00c

Please sign in to comment.