diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-08 20:50:42 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-07-08 20:50:42 -0400 |
commit | 68a21ff249c8a6cd9bdcece64e53162831fe7fd9 (patch) | |
tree | e1f8bffcdcda8e0745bd50cb2b07758283225fd9 /src/SMAPI | |
parent | 0f6f6c65c211f94ad7842e8a9d024471ddf933d3 (diff) | |
download | SMAPI-68a21ff249c8a6cd9bdcece64e53162831fe7fd9.tar.gz SMAPI-68a21ff249c8a6cd9bdcece64e53162831fe7fd9.tar.bz2 SMAPI-68a21ff249c8a6cd9bdcece64e53162831fe7fd9.zip |
fix new event not initialised (#310)
Diffstat (limited to 'src/SMAPI')
-rw-r--r-- | src/SMAPI/Framework/Events/EventManager.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Events/EventManager.cs b/src/SMAPI/Framework/Events/EventManager.cs index 3d5d0124..4de333a3 100644 --- a/src/SMAPI/Framework/Events/EventManager.cs +++ b/src/SMAPI/Framework/Events/EventManager.cs @@ -264,6 +264,7 @@ namespace StardewModdingAPI.Framework.Events ManagedEvent ManageEvent(string typeName, string eventName) => new ManagedEvent($"{typeName}.{eventName}", monitor, modRegistry); // init events (new) + this.GameLoop_Launched = ManageEventOf<GameLoopLaunchedEventArgs>(nameof(IModEvents.GameLoop), nameof(IGameLoopEvents.Launched)); this.GameLoop_Updating = ManageEventOf<GameLoopUpdatingEventArgs>(nameof(IModEvents.GameLoop), nameof(IGameLoopEvents.Updating)); this.GameLoop_Updated = ManageEventOf<GameLoopUpdatedEventArgs>(nameof(IModEvents.GameLoop), nameof(IGameLoopEvents.Updated)); |