Zylleon / MapDesigner

Rimworld mod that allows custom maps
4 stars 4 forks source link

Anima tree patch failing every time #2

Closed dougbenham closed 3 years ago

dougbenham commented 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"));

Should be HarmonyMethod postfix = new HarmonyMethod(typeof(AnimaTreePatch).GetMethod("Postfix", BindingFlags.NonPublic | BindingFlags.Static));

dougbenham commented 3 years ago

3