Restart vote does not vote no for AFK players.

This commit is contained in:
Pieter-Jan Briers
2021-07-22 23:20:39 +02:00
parent 7345985410
commit 992b03a5c2
3 changed files with 7 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ namespace Content.Server.Voting.Managers
foreach (var player in _playerManager.GetAllPlayers())
{
if (player != initiator)
if (player != initiator && !_afkManager.IsAfk(player))
{
// Everybody else defaults to a no vote.
vote.CastVote(player, 1);