using System.Reflection; using NitroxClient.Communication.Abstract; using NitroxModel.Core; using NitroxModel.Helper; using NitroxModel.Packets; namespace NitroxPatcher.Patches.Dynamic; public sealed partial class Bed_EnterInUseMode_Patch : NitroxPatch, IDynamicPatch { public static readonly MethodInfo TARGET_METHOD = Reflect.Method((Bed t) => t.EnterInUseMode(default(Player))); public static void Postfix() { Resolve().Send(new BedEnter()); } }