Skip to content

Commit

Permalink
Prevents Repeated Nominations for Same Map
Browse files Browse the repository at this point in the history
- Adds case insensitivity to nomination search command
  • Loading branch information
data-bomb committed Jun 8, 2024
1 parent 83d0baa commit 1568b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Si_Mapcycle/Si_Mapcycle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You should have received a copy of the GNU General Public License
using System.Linq;
using UnityEngine;

[assembly: MelonInfo(typeof(MapCycleMod), "Mapcycle", "1.5.9", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(MapCycleMod), "Mapcycle", "1.6.0", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand Down Expand Up @@ -358,7 +358,7 @@ public static void Command_Nominate(Player? callerPlayer, String args)
return;
}

bool alreadyNominated = mapNominations.Any(k => k == targetMapName);
bool alreadyNominated = mapNominations.Any(mapName => mapName.Equals(targetMapName, StringComparison.OrdinalIgnoreCase));
if (alreadyNominated)
{
HelperMethods.SendChatMessageToPlayer(callerPlayer, HelperMethods.chatPrefix, commandName, ": Map already nominated");
Expand Down

0 comments on commit 1568b2a

Please sign in to comment.