From d881f568565f8a12025e013cf92eaa025aac8c7c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 10 Mar 2017 20:49:04 -0500 Subject: fix SMAPI not correctly detecting cached assets if they were translated (#173) --- src/StardewModdingAPI/Framework/SContentManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/StardewModdingAPI/Framework/SContentManager.cs b/src/StardewModdingAPI/Framework/SContentManager.cs index e4b9d74e..ef5855b2 100644 --- a/src/StardewModdingAPI/Framework/SContentManager.cs +++ b/src/StardewModdingAPI/Framework/SContentManager.cs @@ -118,7 +118,8 @@ namespace StardewModdingAPI.Framework /// The normalised asset name. private bool IsLoaded(string normalisedAssetName) { - return this.Cache.ContainsKey(normalisedAssetName); + return this.Cache.ContainsKey(normalisedAssetName) + || this.Cache.ContainsKey($"{normalisedAssetName}.{this.GetKeyLocale.Invoke()}"); // translated asset } /// Get the locale for which the asset name was saved, if any. -- cgit