summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/CoreAssets.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-10-13 23:26:27 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-10-13 23:26:27 -0400
commitb71601a2520938b1a09d635007dba26854fd845a (patch)
tree91997df82b6eff647b2cef23232a5758a30b9631 /src/SMAPI/Metadata/CoreAssets.cs
parentc5932233eb8e9bce26c5cea42d1afcdb7e5e4a85 (diff)
downloadSMAPI-b71601a2520938b1a09d635007dba26854fd845a.tar.gz
SMAPI-b71601a2520938b1a09d635007dba26854fd845a.tar.bz2
SMAPI-b71601a2520938b1a09d635007dba26854fd845a.zip
fix recipe data not being reloaded when needed
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssets.cs')
-rw-r--r--src/SMAPI/Metadata/CoreAssets.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssets.cs b/src/SMAPI/Metadata/CoreAssets.cs
index 24f23af7..5a98da4b 100644
--- a/src/SMAPI/Metadata/CoreAssets.cs
+++ b/src/SMAPI/Metadata/CoreAssets.cs
@@ -37,6 +37,10 @@ namespace StardewModdingAPI.Metadata
this.SingletonSetters =
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
["LooseSprites\\daybg"] = (content, key) => Game1.daybg = content.Load<Texture2D>(key),
["LooseSprites\\nightbg"] = (content, key) => Game1.nightbg = content.Load<Texture2D>(key),