mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
Remove the unused config option
This commit is contained in:
2 files changed
+13
-4
No files matched your search
@@ -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,7 +1,6 @@
|
||||
global using static Reactor.Utilities.Logger<Reactor.ReactorPlugin>;
|
||||
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
|
||||
/// </summary>
|
||||
public CustomRpcManager CustomRpcManager { get; } = new();
|
||||
|
||||
internal ConfigEntry<bool>? AllowVanillaServers { get; private set; }
|
||||
|
||||
internal RegionInfoWatcher RegionInfoWatcher { get; } = new();
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -61,7 +58,7 @@ public partial class ReactorPlugin : BasePlugin
|
||||
/// <inheritdoc />
|
||||
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user