BepInEx / HarmonyX

Harmony built on top of MonoMod.RuntimeDetours with additional features
MIT License
329 stars 42 forks source link

Empty Transpiler Causing Issues #88

Closed StarFluxGames closed 8 months ago

StarFluxGames commented 8 months ago

Game : PlateUp! ( Supports Modding )

HarmonyX Version : 2.10.2.0

Creating the following transpiler patch changes how the method works.

    [HarmonyPatch(typeof(ApplyItemProcesses), "Run")]
    public static class ApplyItemProcess_Patch
    {
        [HarmonyTranspiler]
        static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
        {
            return instructions;
        }
    }

If you're familiar with the game PlateUp! When this transpiler patch is active, cooking any splitable item results in it not being able to burn.

When this patch ISN'T active, double cooking a Pizza will burn it.

When this patch IS active, you are unable to double cook the Pizza to burn it.

StarFluxGames commented 8 months ago

Looks to be related to #65