Skip to content

Commit

Permalink
Remove the unused config option
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Dec 4, 2023
1 parent 632a6f8 commit 710ca79
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Reactor/ReactorConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using BepInEx.Configuration;

namespace Reactor;

internal static class ReactorConfig
{
public const string FeaturesSection = "Features";

public static void Bind(ConfigFile config)
{
}
}
5 changes: 1 addition & 4 deletions Reactor/ReactorPlugin.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 />
Expand All @@ -61,7 +58,7 @@ public ReactorPlugin()
/// <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();

Expand Down

0 comments on commit 710ca79

Please sign in to comment.