To reproduce
- Make a plugin that harmony patches
ItemPartDataBlock.Setup() with a MethodBase __originalMethod parameter
- Install InjectLib
- Launch game
- Game crash with this ErrorLog.log
Remarks
Might be an issue with BepInEx with INativeDetour.CreateAndApply