mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 01:33:33 +08:00
Work in progress
This commit is contained in:
@@ -11,14 +11,12 @@ public static class AbnormalDisabler
|
||||
|
||||
public static void Init()
|
||||
{
|
||||
if (_patch != null) return;
|
||||
_patch = Harmony.CreateAndPatchAll(typeof(AbnormalDisabler));
|
||||
_patch ??= Harmony.CreateAndPatchAll(typeof(AbnormalDisabler));
|
||||
}
|
||||
|
||||
public static void Uninit()
|
||||
{
|
||||
if (_patch == null) return;
|
||||
_patch.UnpatchSelf();
|
||||
_patch?.UnpatchSelf();
|
||||
_patch = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user