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());