diff --git a/Patches/MarbleControllerPatches.cs b/Patches/MarbleControllerPatches.cs index 64dd6cf..5f82dd8 100644 --- a/Patches/MarbleControllerPatches.cs +++ b/Patches/MarbleControllerPatches.cs @@ -4,8 +4,7 @@ using UnityEngine; namespace CustomCosmeticLoader.Patches { - [HarmonyPatch(typeof(MarbleController))] - [HarmonyPatch("ApplyMyCosmetics")] + [HarmonyPatch(typeof(MarbleController), nameof(MarbleController.ApplyMyCosmetics))] internal class MarbleControllerApplyMyCosmeticsPatch { private static Cosmetic hijackSkin = null; diff --git a/Patches/MarbleHolderPatches.cs b/Patches/MarbleHolderPatches.cs index 9948809..54f8554 100644 --- a/Patches/MarbleHolderPatches.cs +++ b/Patches/MarbleHolderPatches.cs @@ -4,8 +4,7 @@ using UnityEngine; namespace CustomCosmeticLoader.Patches { - [HarmonyPatch(typeof(MarbleHolder))] - [HarmonyPatch("SetMarble")] + [HarmonyPatch(typeof(MarbleHolder), nameof(MarbleHolder.SetMarble))] internal class MarbleHolderSetMarblePatch { static void Postfix(MarbleHolder __instance, Cosmetic marbleObject)