Skip to content

Commit

Permalink
HQlessHumansLose v1.2.5 - Code cleanup
Browse files Browse the repository at this point in the history
- Remove compiler warnings
  • Loading branch information
data-bomb authored Jan 2, 2024
1 parent f8b4895 commit 64ae8be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Si_HQlessHumansLose/Si_HQlessHumansLose.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Silica Headquarterless Humans Lose Mod
Copyright (C) 2023 by databomb
Copyright (C) 2024 by databomb
* Description *
For Silica servers, automatically detects when humans have lost their
Expand Down Expand Up @@ -34,7 +34,7 @@ You should have received a copy of the GNU General Public License
using System;
using SilicaAdminMod;

[assembly: MelonInfo(typeof(HQlessHumansLose), "[Si] HQless Humans Lose", "1.2.4", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonInfo(typeof(HQlessHumansLose), "[Si] HQless Humans Lose", "1.2.5", "databomb", "https://github.com/data-bomb/Silica")]
[assembly: MelonGame("Bohemia Interactive", "Silica")]
[assembly: MelonOptionalDependencies("Admin Mod")]

Expand All @@ -45,7 +45,7 @@ public class HQlessHumansLose : MelonMod
static bool lostMessageTimerExpired;
static Team? losingTeam;
static Player? destroyerOfWorlds;
static System.Timers.Timer delayLostMessageTimer;
static System.Timers.Timer? delayLostMessageTimer;

public static void TeamLostMessage(Team team)
{
Expand All @@ -71,7 +71,7 @@ static String GetRootStructureFullName(Team team)
return team.TeamName.Contains("Human") ? "Headquarters" : "Nest";
}

static void HandleTimerSendLostMessage(object source, ElapsedEventArgs e)
static void HandleTimerSendLostMessage(object? source, ElapsedEventArgs e)
{
lostMessageTimerExpired = true;
}
Expand Down

0 comments on commit 64ae8be

Please sign in to comment.