Skip to content

Commit e76bd5b

Browse files
committed
Fix for Commander Application Prevention
- Fixed a bug where mods prevented a game from ending when BlockRoundStartUntilCommandersApplied was true
1 parent ebb5a7a commit e76bd5b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Si_CommManagement/CommanderApplications.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,11 @@ private static void Postfix(MP_Strategy __instance)
272272
return;
273273
}
274274

275+
if (__instance.GameOver)
276+
{
277+
return;
278+
}
279+
275280
if (AllTeamsHaveCommanderApplicants())
276281
{
277282
return;

Si_CommManagement/Si_CommanderManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ You should have received a copy of the GNU General Public License
3333
using SilicaAdminMod;
3434
using System.Linq;
3535

36-
[assembly: MelonInfo(typeof(CommanderManager), "Commander Management", "1.6.11", "databomb", "https://github.com/data-bomb/Silica")]
36+
[assembly: MelonInfo(typeof(CommanderManager), "Commander Management", "1.6.12", "databomb", "https://github.com/data-bomb/Silica")]
3737
[assembly: MelonGame("Bohemia Interactive", "Silica")]
3838
[assembly: MelonOptionalDependencies("Admin Mod")]
3939

0 commit comments

Comments
 (0)