From f446a4391aef4e239a53736c42a2652bb2c6fead Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 24 Aug 2017 20:48:06 -0400 Subject: fix game's main temporary content manager not being intercepted (#352) --- src/StardewModdingAPI/Framework/SGame.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(typeof(Game1), "_temporaryContent").SetValue(null); // regenerate value with new content manager } /**** -- cgit