From 3df4d9ad9f7d175dfb9090859c22718a74f49c53 Mon Sep 17 00:00:00 2001 From: SinZ Date: Mon, 15 Sep 2025 20:41:57 +1000 Subject: [PATCH 1/2] Use correct language when propagating textures --- src/SMAPI/Metadata/CoreAssetPropagator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index b4136032c..7ca03f97b 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -178,7 +178,7 @@ private bool PropagateTexture(IAssetName assetName, LocalizedContentManager.Lang { changed = true; - Texture2D texture = contentManager.LoadLocalized(name, language, useCache: true); + Texture2D texture = contentManager.LoadLocalized(name, name.LanguageCode ?? contentManager.Language, useCache: true); texture.CopyFromTexture(newTextures[i].Value); } else From 4d4a3c455f1cdd3954b80f5b88dfc6a3ec54f17e Mon Sep 17 00:00:00 2001 From: SinZ Date: Mon, 15 Sep 2025 23:26:07 +1000 Subject: [PATCH 2/2] Be consistent with cache reads vs fresh load --- src/SMAPI/Metadata/CoreAssetPropagator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 7ca03f97b..358380fdb 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -163,7 +163,7 @@ private bool PropagateTexture(IAssetName assetName, LocalizedContentManager.Lang Lazy[] newTextures = new Lazy[assetNames.Length]; newTextures[0] = new Lazy(() => this.DisposableContentManager.LoadLocalized(assetName, language, useCache: false)); if (assetNames.Length > 1) - newTextures[1] = new Lazy(() => this.DisposableContentManager.LoadLocalized(assetNames[1], language, useCache: false)); + newTextures[1] = new Lazy(() => this.DisposableContentManager.LoadLocalized(assetNames[1], assetNames[1].LanguageCode ?? this.DisposableContentManager.Language, useCache: false)); // apply to content managers foreach (IContentManager contentManager in contentManagers)