From cac0f4fd3aa032986ce8b7c24f58c45a286850a2 Mon Sep 17 00:00:00 2001 From: D1GQ Date: Mon, 16 Mar 2026 17:07:56 -0500 Subject: [PATCH] Move SupportedAmongUsVersions to ModInfo --- src/BAUPlugin.cs | 10 +--------- src/ModInfo.cs | 8 ++++++++ src/Patches/Client/ClientPatch.cs | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/BAUPlugin.cs b/src/BAUPlugin.cs index 8db4ea3..957fbb2 100644 --- a/src/BAUPlugin.cs +++ b/src/BAUPlugin.cs @@ -81,14 +81,6 @@ internal class BAUPlugin : BasePlugin /// internal static PlatformSpecificData PlatformData => Constants.GetPlatformData(); - /// - /// Gets the list of supported Among Us versions. - /// - internal static string[] SupportedAmongUsVersions = - [ - "2025.11.18", - ]; - /// /// Gets the list of all PlayerControl instances. /// @@ -161,7 +153,7 @@ internal class BAUPlugin : BasePlugin File.WriteAllText(Path.Combine(BetterDataManager.filePathFolder, "better-log.txt"), ""); Logger_.Log("Better Among Us successfully loaded!"); - string SupportedVersions = string.Join(" ", SupportedAmongUsVersions); + string SupportedVersions = string.Join(" ", ModInfo.SupportedAmongUsVersions); Logger_.Log($"BetterAmongUs {BetterAmongUsVersion}-{ModInfo.BuildDate} - [{AppVersion} --> {SupportedVersions}] {Utils.GetPlatformName(PlatformData.Platform)}"); } diff --git a/src/ModInfo.cs b/src/ModInfo.cs index eb0d4fb..7a79fdf 100644 --- a/src/ModInfo.cs +++ b/src/ModInfo.cs @@ -53,6 +53,14 @@ internal static class ModInfo /// internal const string PLUGIN_VERSION = "1.3.2"; + /// + /// Gets the list of supported Among Us versions. + /// + internal static string[] SupportedAmongUsVersions = + [ + "2025.11.18", + ]; + /// /// The GitHub repository URL for BAU. /// diff --git a/src/Patches/Client/ClientPatch.cs b/src/Patches/Client/ClientPatch.cs index 98464a7..46015cf 100644 --- a/src/Patches/Client/ClientPatch.cs +++ b/src/Patches/Client/ClientPatch.cs @@ -27,7 +27,7 @@ internal static class ClientPatch private static bool SignInStatusComponent_SetOnline_Prefix(SignInStatusComponent __instance) { // Get supported Among Us versions for BAU - var varSupportedVersions = BAUPlugin.SupportedAmongUsVersions; + var varSupportedVersions = ModInfo.SupportedAmongUsVersions; Version currentVersion = new(BAUPlugin.AppVersion); Version firstSupportedVersion = new(varSupportedVersions.First()); Version lastSupportedVersion = new(varSupportedVersions.Last());