fix recipe data not being reloaded when needed

This commit is contained in:
Jesse Plamondon-Willard 2017-10-13 23:26:27 -04:00
parent c5932233eb
commit b71601a252
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ namespace StardewModdingAPI.Metadata
this.SingletonSetters = this.SingletonSetters =
new Dictionary<string, Action<SContentManager, string>> new Dictionary<string, Action<SContentManager, string>>
{ {
// from CraftingRecipe.InitShared
["Data\\CraftingRecipes"] = (content, key) => CraftingRecipe.craftingRecipes = content.Load<Dictionary<string, string>>(key),
["Data\\CookingRecipes"] = (content, key) => CraftingRecipe.cookingRecipes = content.Load<Dictionary<string, string>>(key),
// from Game1.loadContent // from Game1.loadContent
["LooseSprites\\daybg"] = (content, key) => Game1.daybg = content.Load<Texture2D>(key), ["LooseSprites\\daybg"] = (content, key) => Game1.daybg = content.Load<Texture2D>(key),
["LooseSprites\\nightbg"] = (content, key) => Game1.nightbg = content.Load<Texture2D>(key), ["LooseSprites\\nightbg"] = (content, key) => Game1.nightbg = content.Load<Texture2D>(key),