Remove the unused config option

This commit is contained in:
js6pak committed 2023-12-04 21:52:26 +01:00
1 parent 632a6f8ca1
commit 710ca79fa5
2 files changed
+13 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
using BepInEx.Configuration;
namespace Reactor;
internal static class ReactorConfig
{
public const string FeaturesSection = "Features";
public static void Bind(ConfigFile config)
{
}
}
+1 -4
View File
@@ -1,7 +1,6 @@
global using static Reactor.Utilities.Logger<Reactor.ReactorPlugin>; global using static Reactor.Utilities.Logger<Reactor.ReactorPlugin>;
using System; using System;
using BepInEx; using BepInEx;
using BepInEx.Configuration;
using BepInEx.Unity.IL2CPP; using BepInEx.Unity.IL2CPP;
using HarmonyLib; using HarmonyLib;
using Il2CppInterop.Runtime.Attributes; using Il2CppInterop.Runtime.Attributes;
@@ -36,8 +35,6 @@ public partial class ReactorPlugin : BasePlugin
/// </summary> /// </summary>
public CustomRpcManager CustomRpcManager { get; } = new(); public CustomRpcManager CustomRpcManager { get; } = new();
internal ConfigEntry<bool>? AllowVanillaServers { get; private set; }
internal RegionInfoWatcher RegionInfoWatcher { get; } = new(); internal RegionInfoWatcher RegionInfoWatcher { get; } = new();
/// <inheritdoc /> /// <inheritdoc />
@@ -61,7 +58,7 @@ public partial class ReactorPlugin : BasePlugin
/// <inheritdoc /> /// <inheritdoc />
public override void Load() 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(); Harmony.PatchAll();