20 lines
468 B
C#
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();
|
|
}
|
|
}
|
|
} |