22 lines
519 B
C#
Raw Normal View History

2022-05-14 19:53:00 +01:00
using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
using UnityEngine;
namespace BushWhacker
{
public class Patch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
2022-05-14 19:53:00 +01:00
}
[PatchPostfix]
public static void PatchPostFix()
{
Debug.LogError("test patch");
BushWhacker.DisableBushes();
}
}
}