From 2406380495cc5176d3cbd2309e6f17080389f9af Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 26 Dec 2020 01:28:00 -0500 Subject: fix SMAPI using a cached translation when the game asks for an untranslated asset This mainly affects community center bundles in Stardew Valley 1.5, --- src/SMAPI/Framework/ContentManagers/ModContentManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/SMAPI/Framework/ContentManagers/ModContentManager.cs') diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs index 127705ea..753ec188 100644 --- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs +++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs @@ -211,7 +211,8 @@ namespace StardewModdingAPI.Framework.ContentManagers *********/ /// Get whether an asset has already been loaded. /// The normalized asset name. - protected override bool IsNormalizedKeyLoaded(string normalizedAssetName) + /// The language to check. + protected override bool IsNormalizedKeyLoaded(string normalizedAssetName, LanguageCode language) { return this.Cache.ContainsKey(normalizedAssetName); } -- cgit