CWX-mods/Live/CWX_WeatherPatcher/GameWorldPatch.cs
2023-08-08 19:34:27 +01:00

20 lines
468 B
C#

using System.Reflection;
using Aki.Reflection.Patching;
using EFT;
namespace CWX_WeatherPatcher
{
public class GameWorldPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod("OnGameStarted", BindingFlags.Public | BindingFlags.Instance);
}
[PatchPostfix]
private static void PatchPostFix()
{
WeatherPatcher.Fix();
}
}
}