diff --git a/QSB/Patches/QSBPatchManager.cs b/QSB/Patches/QSBPatchManager.cs index 1b519b8e..8d3745cb 100644 --- a/QSB/Patches/QSBPatchManager.cs +++ b/QSB/Patches/QSBPatchManager.cs @@ -84,10 +84,18 @@ namespace QSB.Patches TypeToInstance = new Dictionary { - { QSBPatchTypes.OnClientConnect, new Harmony("QSB.Client") }, - { QSBPatchTypes.OnServerClientConnect, new Harmony("QSB.Server") }, - { QSBPatchTypes.OnNonServerClientConnect, new Harmony("QSB.NonServer") }, - { QSBPatchTypes.RespawnTime, new Harmony("QSB.Death") } + { + 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); @@ -109,13 +117,13 @@ namespace QSB.Patches try { patch.DoPatches(TypeToInstance[type]); - _patchedTypes.Add(type); } catch (Exception ex) { DebugLog.ToConsole($"Error while patching {patch.GetType().Name} :\r\n{ex}", MessageType.Error); } } + _patchedTypes.Add(type); } public static void DoUnpatchType(QSBPatchTypes type)