Skip to content

Commit

Permalink
Fix votemap disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
abnerfs committed Mar 16, 2024
1 parent 8d4a40e commit 43cfcb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Features/VotemapCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ void AddVote(CCSPlayerController player, string map)
public void PlayerDisconnected(CCSPlayerController player)
{
int userId = player.UserId!.Value;
foreach (var map in VotedMaps.Select(x => x.Key))
map.Remove(userId);
foreach (var map in VotedMaps)
map.Value.RemoveVote(userId);
}
}
}
2 changes: 1 addition & 1 deletion Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void ConfigureServices(IServiceCollection serviceCollection)
public partial class Plugin : BasePlugin, IPluginConfig<Config>
{
public override string ModuleName => "RockTheVote";
public override string ModuleVersion => "1.7.4";
public override string ModuleVersion => "1.7.5";
public override string ModuleAuthor => "abnerfs";
public override string ModuleDescription => "General purpose map voting plugin";

Expand Down

0 comments on commit 43cfcb6

Please sign in to comment.