summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-12-26 01:28:00 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-12-26 01:28:00 -0500
commit2406380495cc5176d3cbd2309e6f17080389f9af (patch)
tree1a1e71d64010c3a68383ea7d9a6b22f9ffb4aa39 /src/SMAPI/Framework/ContentManagers/ModContentManager.cs
parent9215f89825734f447b8637851569de9ffa08b661 (diff)
downloadSMAPI-2406380495cc5176d3cbd2309e6f17080389f9af.tar.gz
SMAPI-2406380495cc5176d3cbd2309e6f17080389f9af.tar.bz2
SMAPI-2406380495cc5176d3cbd2309e6f17080389f9af.zip
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,
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers/ModContentManager.cs')
-rw-r--r--src/SMAPI/Framework/ContentManagers/ModContentManager.cs3
1 files changed, 2 insertions, 1 deletions
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
*********/
/// <summary>Get whether an asset has already been loaded.</summary>
/// <param name="normalizedAssetName">The normalized asset name.</param>
- protected override bool IsNormalizedKeyLoaded(string normalizedAssetName)
+ /// <param name="language">The language to check.</param>
+ protected override bool IsNormalizedKeyLoaded(string normalizedAssetName, LanguageCode language)
{
return this.Cache.ContainsKey(normalizedAssetName);
}