HideDress/SkinHide/Patches/BotOwnerPatch.cs
2022-05-27 05:14:50 +08:00

22 lines
516 B
C#

using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using System.Reflection;
using EFT;
namespace SkinHide.Patches
{
public class BotOwnerPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(BotOwner).GetMethod("method_4", PatchConstants.PrivateFlags);
}
[PatchPostfix]
private static void PatchPostfix(BotOwner __instance)
{
SkinHidePlugin.Bot.Add(__instance.gameObject);
}
}
}