Small Harmony refactor
This commit is contained in:
parent
b3ad618392
commit
d848346421
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue