0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
modules/project/Aki.SinglePlayer/Patches/RaidFix/InsuredItemManagerStartPatch.cs

22 lines
521 B
C#
Raw Normal View History

using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
using Aki.SinglePlayer.Utils.Insurance;
namespace Aki.SinglePlayer.Patches.RaidFix
{
public class InsuredItemManagerStartPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod(nameof(GameWorld.OnGameStarted));
}
[PatchPostfix]
public static void PatchPostFix()
{
InsuredItemManager.Instance.Init();
}
}
}