1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 19:33:28 +08:00

Dustbin: fix patch attributes to use nameof()

This commit is contained in:
2025-03-26 18:18:03 +08:00
parent 092795cbac
commit 69ab11c392
3 changed files with 13 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ public static class BeltSignal
}
[HarmonyPostfix, HarmonyPriority(Priority.Last)]
[HarmonyPatch(typeof(VFPreload), "InvokeOnLoadWorkEnded")]
[HarmonyPatch(typeof(VFPreload), nameof(VFPreload.InvokeOnLoadWorkEnded))]
private static void VFPreload_InvokeOnLoadWorkEnded_Postfix()
{
if (_initialized) return;
@@ -198,7 +198,7 @@ public static class BeltSignal
}
[HarmonyTranspiler]
[HarmonyPatch(typeof(GameData), "GameTick")]
[HarmonyPatch(typeof(GameData), nameof(GameData.GameTick))]
public static IEnumerable<CodeInstruction> GameData_GameTick_Transpiler(IEnumerable<CodeInstruction> instructions, ILGenerator generator)
{
var matcher = new CodeMatcher(instructions, generator);