16 lines
475 B
C#
16 lines
475 B
C#
using System.Reflection;
|
|
using NitroxClient.GameLogic;
|
|
using NitroxModel.Helper;
|
|
|
|
namespace NitroxPatcher.Patches.Dynamic;
|
|
|
|
public sealed partial class MedicalCabinet_OnHandClick_Patch : NitroxPatch, IDynamicPatch
|
|
{
|
|
private static readonly MethodInfo TARGET_METHOD = Reflect.Method((MedicalCabinet t) => t.OnHandClick(default(GUIHand)));
|
|
|
|
public static void Postfix(MedicalCabinet __instance)
|
|
{
|
|
Resolve<MedkitFabricator>().Clicked(__instance);
|
|
}
|
|
}
|