Closed dougbenham closed 3 years ago
https://github.com/Zylleon/MapDesigner/blob/57f6874f8802d67b2e0d20ba6a4e55c816eb5ce7/Source/MapDesigner/Patches/HarmonyPatches.cs#L34
Instead of: HarmonyMethod postfix = new HarmonyMethod(typeof(MapDesigner).GetMethod("AnimaTreePatch"));
HarmonyMethod postfix = new HarmonyMethod(typeof(MapDesigner).GetMethod("AnimaTreePatch"));
Should be HarmonyMethod postfix = new HarmonyMethod(typeof(AnimaTreePatch).GetMethod("Postfix", BindingFlags.NonPublic | BindingFlags.Static));
HarmonyMethod postfix = new HarmonyMethod(typeof(AnimaTreePatch).GetMethod("Postfix", BindingFlags.NonPublic | BindingFlags.Static));
https://github.com/Zylleon/MapDesigner/blob/57f6874f8802d67b2e0d20ba6a4e55c816eb5ce7/Source/MapDesigner/Patches/HarmonyPatches.cs#L34
Instead of:
HarmonyMethod postfix = new HarmonyMethod(typeof(MapDesigner).GetMethod("AnimaTreePatch"));
Should be
HarmonyMethod postfix = new HarmonyMethod(typeof(AnimaTreePatch).GetMethod("Postfix", BindingFlags.NonPublic | BindingFlags.Static));