This commit is contained in:
NotAKidoS 2023-04-13 20:51:21 -05:00
parent e81a4c0441
commit 2d0f9a128a
6 changed files with 154 additions and 0 deletions

24
JumpPatch/Main.cs Normal file
View file

@ -0,0 +1,24 @@
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);
}
}
}