Small Harmony refactor

This commit is contained in:
Terry Hearst 2023-09-02 23:19:35 -04:00
parent b3ad618392
commit d848346421
2 changed files with 2 additions and 4 deletions

View file

@ -4,8 +4,7 @@ using UnityEngine;
namespace CustomCosmeticLoader.Patches namespace CustomCosmeticLoader.Patches
{ {
[HarmonyPatch(typeof(MarbleController))] [HarmonyPatch(typeof(MarbleController), nameof(MarbleController.ApplyMyCosmetics))]
[HarmonyPatch("ApplyMyCosmetics")]
internal class MarbleControllerApplyMyCosmeticsPatch internal class MarbleControllerApplyMyCosmeticsPatch
{ {
private static Cosmetic hijackSkin = null; private static Cosmetic hijackSkin = null;

View file

@ -4,8 +4,7 @@ using UnityEngine;
namespace CustomCosmeticLoader.Patches namespace CustomCosmeticLoader.Patches
{ {
[HarmonyPatch(typeof(MarbleHolder))] [HarmonyPatch(typeof(MarbleHolder), nameof(MarbleHolder.SetMarble))]
[HarmonyPatch("SetMarble")]
internal class MarbleHolderSetMarblePatch internal class MarbleHolderSetMarblePatch
{ {
static void Postfix(MarbleHolder __instance, Cosmetic marbleObject) static void Postfix(MarbleHolder __instance, Cosmetic marbleObject)