Skip to content

Commit

Permalink
Fix Surrender Text Response Error
Browse files Browse the repository at this point in the history
- Fixes a logical error which said "or 1 commander" needed to surrender when Surrender_CommanderImmediate is set to false
  • Loading branch information
data-bomb committed Sep 11, 2024
1 parent 2c89690 commit b9ede4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Si_SurrenderCommand/Si_SurrenderCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit b9ede4c

Please sign in to comment.