mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
I'm dumb
This commit is contained in:
parent
e4e4e20ff4
commit
e3d5eca60f
@ -1,4 +1,6 @@
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
|
using NewHorizons.Patches.WarpPatches;
|
||||||
|
using NewHorizons.Utility.OWML;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Reflection.Emit;
|
using System.Reflection.Emit;
|
||||||
using UnityEngine;
|
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 a new check to it pointing to the same label as the others
|
||||||
.Insert(
|
.Insert(
|
||||||
new CodeMatch(OpCodes.Call, AccessTools.Method(typeof(GlobalMusicControllerPatches), nameof(GlobalMusicControllerPatches.IsPlayerInNoAudioVolumes))),
|
new CodeInstruction(OpCodes.Call, AccessTools.Method(typeof(GlobalMusicControllerPatches), nameof(GlobalMusicControllerPatches.IsPlayerInNoAudioVolumes))),
|
||||||
new CodeMatch(OpCodes.Brfalse_S, label)
|
new CodeInstruction(OpCodes.Brfalse_S, label)
|
||||||
)
|
)
|
||||||
.InstructionEnumeration();
|
.InstructionEnumeration();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user