mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
22 lines
521 B
C#
22 lines
521 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|