diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-11 20:30:57 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-11 20:30:57 -0400 |
commit | 588d4d94fa63198fec2a7b861ecea17cf2085cee (patch) | |
tree | f0439799d2597aa021549a8562ef1fdd55568f37 /src/SMAPI/Program.cs | |
parent | 9c49d090a06c96ff2c1f4978da67e864177c2a2e (diff) | |
download | SMAPI-588d4d94fa63198fec2a7b861ecea17cf2085cee.tar.gz SMAPI-588d4d94fa63198fec2a7b861ecea17cf2085cee.tar.bz2 SMAPI-588d4d94fa63198fec2a7b861ecea17cf2085cee.zip |
fix some content managers not replaced early enough (#453, #413)
Diffstat (limited to 'src/SMAPI/Program.cs')
-rw-r--r-- | src/SMAPI/Program.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs index 39a5754b..e713add5 100644 --- a/src/SMAPI/Program.cs +++ b/src/SMAPI/Program.cs @@ -190,6 +190,8 @@ namespace StardewModdingAPI AppDomain.CurrentDomain.UnhandledException += (sender, e) => this.Monitor.Log($"Critical app domain exception: {e.ExceptionObject}", LogLevel.Error); // override game + SGame.MonitorDuringInitialisation = this.Monitor; + SGame.ReflectorDuringInitialisation = this.Reflection; this.GameInstance = new SGame(this.Monitor, this.Reflection, this.EventManager, this.InitialiseAfterGameStart); StardewValley.Program.gamePtr = this.GameInstance; |