diff --git a/NewHorizons/Patches/GlobalMusicControllerPatches.cs b/NewHorizons/Patches/GlobalMusicControllerPatches.cs index 0f0cf24e..4bd5e741 100644 --- a/NewHorizons/Patches/GlobalMusicControllerPatches.cs +++ b/NewHorizons/Patches/GlobalMusicControllerPatches.cs @@ -1,4 +1,6 @@ using HarmonyLib; +using NewHorizons.Patches.WarpPatches; +using NewHorizons.Utility.OWML; using System.Collections.Generic; using System.Reflection.Emit; using UnityEngine; @@ -35,8 +37,8 @@ public static class GlobalMusicControllerPatches ) // Insert a new check to it pointing to the same label as the others .Insert( - new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(GlobalMusicControllerPatches), nameof(GlobalMusicControllerPatches.IsPlayerInNoAudioVolumes))), - new CodeMatch(OpCodes.Brfalse_S, label) + new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(GlobalMusicControllerPatches), nameof(GlobalMusicControllerPatches.IsPlayerInNoAudioVolumes))), + new CodeInstruction(OpCodes.Brfalse_S, label) ) .InstructionEnumeration(); }