From 64ae8be8f2dfc0aee5f95a588f67c08a0624d67f Mon Sep 17 00:00:00 2001 From: data-bomb Date: Tue, 2 Jan 2024 14:07:10 -0800 Subject: [PATCH] HQlessHumansLose v1.2.5 - Code cleanup - Remove compiler warnings --- Si_HQlessHumansLose/Si_HQlessHumansLose.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Si_HQlessHumansLose/Si_HQlessHumansLose.cs b/Si_HQlessHumansLose/Si_HQlessHumansLose.cs index 8bac815..4d92e23 100644 --- a/Si_HQlessHumansLose/Si_HQlessHumansLose.cs +++ b/Si_HQlessHumansLose/Si_HQlessHumansLose.cs @@ -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 @@ -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")] @@ -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) { @@ -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; }