first commit
This commit is contained in:
17
NitroxPatcher/Patches/Dynamic/Bed_EnterInUseMode_Patch.cs
Normal file
17
NitroxPatcher/Patches/Dynamic/Bed_EnterInUseMode_Patch.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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<IPacketSender>().Send(new BedEnter());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user