From 1568b2aa47b1130fd3d44d938a3aad7241282777 Mon Sep 17 00:00:00 2001 From: data-bomb Date: Sat, 8 Jun 2024 11:23:38 -0700 Subject: [PATCH] Prevents Repeated Nominations for Same Map - Adds case insensitivity to nomination search command --- Si_Mapcycle/Si_Mapcycle.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Si_Mapcycle/Si_Mapcycle.cs b/Si_Mapcycle/Si_Mapcycle.cs index 4bf6bc4..a7371f5 100644 --- a/Si_Mapcycle/Si_Mapcycle.cs +++ b/Si_Mapcycle/Si_Mapcycle.cs @@ -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")] @@ -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");