From b9ede4cfb59543ad2989b7d009651a8ded7d40b2 Mon Sep 17 00:00:00 2001 From: data-bomb Date: Tue, 10 Sep 2024 17:25:51 -0700 Subject: [PATCH] Fix Surrender Text Response Error - Fixes a logical error which said "or 1 commander" needed to surrender when Surrender_CommanderImmediate is set to false --- Si_SurrenderCommand/Si_SurrenderCommand.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Si_SurrenderCommand/Si_SurrenderCommand.cs b/Si_SurrenderCommand/Si_SurrenderCommand.cs index a3630a7..03b7b45 100644 --- a/Si_SurrenderCommand/Si_SurrenderCommand.cs +++ b/Si_SurrenderCommand/Si_SurrenderCommand.cs @@ -34,7 +34,7 @@ You should have received a copy of the GNU General Public License using UnityEngine; using System.Collections.Generic; -[assembly: MelonInfo(typeof(SurrenderCommand), "Surrender Command", "1.5.0", "databomb", "https://github.com/data-bomb/Silica")] +[assembly: MelonInfo(typeof(SurrenderCommand), "Surrender Command", "1.5.1", "databomb", "https://github.com/data-bomb/Silica")] [assembly: MelonGame("Bohemia Interactive", "Silica")] [assembly: MelonOptionalDependencies("Admin Mod")] @@ -132,7 +132,7 @@ public static void Command_Surrender(Player? callerPlayer, String args) // did the player already vote for surrender? if (votesToSurrender[team.Index].Contains(callerPlayer)) { - HelperMethods.SendChatMessageToPlayer(callerPlayer, HelperMethods.chatPrefix, " Already voted for surrender. ", MoreSurrenderVotesNeeded(team).ToString(), " more players " + (Pref_Surrender_CommanderImmediate.Value ? "or 1 commander" : "") + " needed."); + HelperMethods.SendChatMessageToPlayer(callerPlayer, HelperMethods.chatPrefix, " Already voted for surrender. ", MoreSurrenderVotesNeeded(team).ToString(), " more players " + (Pref_Surrender_CommanderImmediate.Value ? "" : "or 1 commander") + " needed."); return; }