first commit
This commit is contained in:
15
NitroxPatcher/Patches/Dynamic/EscapePod_Awake_Patch.cs
Normal file
15
NitroxPatcher/Patches/Dynamic/EscapePod_Awake_Patch.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Reflection;
|
||||
using NitroxClient.GameLogic.Spawning.WorldEntities;
|
||||
using NitroxModel.Helper;
|
||||
|
||||
namespace NitroxPatcher.Patches.Dynamic;
|
||||
|
||||
public sealed partial class EscapePod_Awake_Patch : NitroxPatch, IDynamicPatch
|
||||
{
|
||||
public static readonly MethodInfo TARGET_METHOD = Reflect.Method((EscapePod t) => t.Awake());
|
||||
|
||||
public static bool Prefix(EscapePod __instance)
|
||||
{
|
||||
return !EscapePodWorldEntitySpawner.SuppressEscapePodAwakeMethod;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user