NAK_CVR_Mods/JumpPatch/Main.cs
NotAKidoS 2d0f9a128a init
2023-04-13 20:51:21 -05:00

24 lines
No EOL
507 B
C#

using MelonLoader;
namespace NAK.Melons.JumpPatch;
public class JumpPatchMod : MelonMod
{
public override void OnInitializeMelon()
{
ApplyPatches(typeof(HarmonyPatches.MovementSystemPatches));
}
private void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
LoggerInstance.Msg($"Failed while patching {type.Name}!");
LoggerInstance.Error(e);
}
}
}