From 710ca79fa5b8c7777c68908d3213019ee3db7e46 Mon Sep 17 00:00:00 2001 From: js6pak Date: Mon, 4 Dec 2023 21:52:26 +0100 Subject: [PATCH] Remove the unused config option --- Reactor/ReactorConfig.cs | 12 ++++++++++++ Reactor/ReactorPlugin.cs | 5 +---- 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 Reactor/ReactorConfig.cs diff --git a/Reactor/ReactorConfig.cs b/Reactor/ReactorConfig.cs new file mode 100644 index 0000000..04e1036 --- /dev/null +++ b/Reactor/ReactorConfig.cs @@ -0,0 +1,12 @@ +using BepInEx.Configuration; + +namespace Reactor; + +internal static class ReactorConfig +{ + public const string FeaturesSection = "Features"; + + public static void Bind(ConfigFile config) + { + } +} diff --git a/Reactor/ReactorPlugin.cs b/Reactor/ReactorPlugin.cs index 6b3dd4e..df51844 100644 --- a/Reactor/ReactorPlugin.cs +++ b/Reactor/ReactorPlugin.cs @@ -1,7 +1,6 @@ global using static Reactor.Utilities.Logger; using System; using BepInEx; -using BepInEx.Configuration; using BepInEx.Unity.IL2CPP; using HarmonyLib; using Il2CppInterop.Runtime.Attributes; @@ -36,8 +35,6 @@ public partial class ReactorPlugin : BasePlugin /// public CustomRpcManager CustomRpcManager { get; } = new(); - internal ConfigEntry? AllowVanillaServers { get; private set; } - internal RegionInfoWatcher RegionInfoWatcher { get; } = new(); /// @@ -61,7 +58,7 @@ public partial class ReactorPlugin : BasePlugin /// public override void Load() { - AllowVanillaServers = Config.Bind("Features", "Allow vanilla servers", false, "Whether reactor should ignore servers not responding to modded handshake. This config is ignored if any plugin uses custom rpcs!"); + ReactorConfig.Bind(Config); Harmony.PatchAll();