Skip to content

Commit

Permalink
Close menu when player votes
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Jun 16, 2024
1 parent 4d4a080 commit 7f1cf88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Features/VotemapCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ public void OnMapsLoaded(object? sender, Map[] maps)
votemapMenu.AddMenuOption(map.Name, (CCSPlayerController player, ChatMenuOption option) =>
{
AddVote(player, option.Text);
MenuManager.CloseActiveMenu(player);
}, _mapCooldown.IsMapInCooldown(map.Name));

votemapMenuHud.AddMenuOption(map.Name, (CCSPlayerController player, ChatMenuOption option) =>
{
AddVote(player, option.Text);
MenuManager.CloseActiveMenu(player);
}, _mapCooldown.IsMapInCooldown(map.Name));
}
}
Expand Down

0 comments on commit 7f1cf88

Please sign in to comment.