diff --git a/Patches/GamePlayManagerPatches.cs b/Patches/GamePlayManagerPatches.cs index 2963735..9824622 100644 --- a/Patches/GamePlayManagerPatches.cs +++ b/Patches/GamePlayManagerPatches.cs @@ -3,8 +3,7 @@ using MIU; namespace DiamondTimeViewer.Patches { - [HarmonyPatch(typeof(GamePlayManager))] - [HarmonyPatch("FinishPlay")] + [HarmonyPatch(typeof(GamePlayManager), nameof(GamePlayManager.FinishPlay))] internal class GamePlayManagerFinishPlayPatch { static void Postfix(GamePlayManager __instance, MarbleController marble) diff --git a/Patches/MedalsDisplayPatches.cs b/Patches/MedalsDisplayPatches.cs index 67efe16..e595cf6 100644 --- a/Patches/MedalsDisplayPatches.cs +++ b/Patches/MedalsDisplayPatches.cs @@ -3,8 +3,7 @@ using System.Collections.Generic; namespace DiamondTimeViewer.Patches { - [HarmonyPatch(typeof(MedalsDisplay))] - [HarmonyPatch("Setup")] + [HarmonyPatch(typeof(MedalsDisplay), nameof(MedalsDisplay.Setup))] internal class MedalsDisplaySetupPatch { static bool Prefix(MedalsDisplay __instance, float silver, float gold, List eggUnlock)