From 56e6792ed4073922815b43998c035cc3a9648f73 Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Sat, 16 Oct 2021 14:15:25 +0100 Subject: [PATCH] cleanup --- QSB/Patches/QSBPatchManager.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/QSB/Patches/QSBPatchManager.cs b/QSB/Patches/QSBPatchManager.cs index e89e7f9f..31cabaf4 100644 --- a/QSB/Patches/QSBPatchManager.cs +++ b/QSB/Patches/QSBPatchManager.cs @@ -36,10 +36,6 @@ namespace QSB.Patches private static List _patchList = new List(); - public static Harmony ClientInstance; - public static Harmony ServerInstance; - public static Harmony NonServerInstance; - public static Harmony DeathInstance; public static Dictionary TypeToInstance = new Dictionary(); public static void Init() @@ -74,16 +70,12 @@ namespace QSB.Patches new LauncherPatches() }; - ClientInstance = new Harmony("QSB.Client"); - ServerInstance = new Harmony("QSB.Server"); - NonServerInstance = new Harmony("QSB.NonServer"); - DeathInstance = new Harmony("QSB.Death"); TypeToInstance = new Dictionary { - { QSBPatchTypes.OnClientConnect, ClientInstance }, - { QSBPatchTypes.OnServerClientConnect, ServerInstance }, - { QSBPatchTypes.OnNonServerClientConnect, NonServerInstance }, - { QSBPatchTypes.RespawnTime, DeathInstance } + { QSBPatchTypes.OnClientConnect, new Harmony("QSB.Client") }, + { QSBPatchTypes.OnServerClientConnect, new Harmony("QSB.Server") }, + { QSBPatchTypes.OnNonServerClientConnect, new Harmony("QSB.NonServer") }, + { QSBPatchTypes.RespawnTime, new Harmony("QSB.Death") } }; DebugLog.DebugWrite("Patch Manager ready.", MessageType.Success);