Skip to content

Commit d9ce28e

Browse files
committed
Adds Check for RTV during Map Changes
- Prevents RTV from working if the map is changing due to it being the end of the round
1 parent e0b96ac commit d9ce28e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Si_Mapcycle/Si_Mapcycle.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You should have received a copy of the GNU General Public License
3535
using SilicaAdminMod;
3636
using System.Linq;
3737

38-
[assembly: MelonInfo(typeof(MapCycleMod), "Mapcycle", "1.4.5", "databomb", "https://github.com/data-bomb/Silica")]
38+
[assembly: MelonInfo(typeof(MapCycleMod), "Mapcycle", "1.4.6", "databomb", "https://github.com/data-bomb/Silica")]
3939
[assembly: MelonGame("Bohemia Interactive", "Silica")]
4040
[assembly: MelonOptionalDependencies("Admin Mod")]
4141

@@ -127,6 +127,13 @@ public static void Command_RockTheVote(Player callerPlayer, String args)
127127
return;
128128
}
129129

130+
// is the end-game timer already preparing to switch
131+
if (EndRoundDelayTimer != null && EndRoundDelayTimer.Enabled)
132+
{
133+
HelperMethods.SendChatMessageToPlayer(callerPlayer, HelperMethods.chatPrefix, " Can't rock the vote. Map change already in progress.");
134+
return;
135+
}
136+
130137
// did we already RTV
131138
if (rockers.Contains(callerPlayer))
132139
{

0 commit comments

Comments
 (0)