diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-08-24 20:48:06 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-08-24 20:48:06 -0400 |
commit | f446a4391aef4e239a53736c42a2652bb2c6fead (patch) | |
tree | 63febb01ba8934e3c5712139544ea06339b4b8c7 /src/StardewModdingAPI/Framework | |
parent | 5622e3b319cf7a312537f2a555fee9e67628b1cd (diff) | |
download | SMAPI-f446a4391aef4e239a53736c42a2652bb2c6fead.tar.gz SMAPI-f446a4391aef4e239a53736c42a2652bb2c6fead.tar.bz2 SMAPI-f446a4391aef4e239a53736c42a2652bb2c6fead.zip |
fix game's main temporary content manager not being intercepted (#352)
Diffstat (limited to 'src/StardewModdingAPI/Framework')
-rw-r--r-- | src/StardewModdingAPI/Framework/SGame.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs index 997e0c8c..2bfbc06a 100644 --- a/src/StardewModdingAPI/Framework/SGame.cs +++ b/src/StardewModdingAPI/Framework/SGame.cs @@ -203,6 +203,7 @@ namespace StardewModdingAPI.Framework this.SContentManager = new SContentManager(this.Content.ServiceProvider, this.Content.RootDirectory, Thread.CurrentThread.CurrentUICulture, null, this.Monitor); this.Content = this.SContentManager; Game1.content = this.SContentManager; + reflection.GetPrivateField<LocalizedContentManager>(typeof(Game1), "_temporaryContent").SetValue(null); // regenerate value with new content manager } /**** |