diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-12-26 01:28:00 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-12-26 01:28:00 -0500 |
commit | 2406380495cc5176d3cbd2309e6f17080389f9af (patch) | |
tree | 1a1e71d64010c3a68383ea7d9a6b22f9ffb4aa39 /src/SMAPI/Framework/ContentManagers/ModContentManager.cs | |
parent | 9215f89825734f447b8637851569de9ffa08b661 (diff) | |
download | SMAPI-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.cs | 3 |
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); } |