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
{
[HarmonyPatch(typeof(MarbleController))]
[HarmonyPatch("ApplyMyCosmetics")]
[HarmonyPatch(typeof(MarbleController), nameof(MarbleController.ApplyMyCosmetics))]
internal class MarbleControllerApplyMyCosmeticsPatch
{
private static Cosmetic hijackSkin = null;

View file

@ -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)