23 lines
622 B
C#
23 lines
622 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using BoneSync.Sync;
|
|
using HarmonyLib;
|
|
using StressLevelZero.Interaction;
|
|
namespace BoneSync.Patching
|
|
{
|
|
[HarmonyPatch(typeof(ForcePullGrip))]
|
|
internal class ForcePullGripPatches
|
|
{
|
|
[HarmonyPatch(nameof(ForcePullGrip.Pull)), HarmonyPostfix]
|
|
public static void OnEnablePatch(ForcePullGrip __instance)
|
|
{
|
|
MelonLoader.MelonLogger.Msg("ForcePullGrip.Pull: " + __instance.name);
|
|
ObjectSync.MakeOrGetSyncable(__instance.gameObject);
|
|
}
|
|
|
|
}
|
|
}
|