From 534142009d4b94038150827398b9020edebfe4c0 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 16 Oct 2020 17:42:13 -0400 Subject: reapply the game's town map changes in asset propagation --- src/SMAPI/Metadata/CoreAssetPropagator.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/SMAPI') diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 701bc9f2..307bb11b 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -138,6 +138,14 @@ namespace StardewModdingAPI.Metadata { if (!string.IsNullOrWhiteSpace(location.mapPath.Value) && this.NormalizeAssetNameIgnoringEmpty(location.mapPath.Value) == key) { + // reset town caches + if (location is Town town) + { + this.Reflection.GetField(town, "ccRefurbished").SetValue(false); + this.Reflection.GetField(town, "isShowingDestroyedJoja").SetValue(false); + this.Reflection.GetField(town, "isShowingUpgradedPamHouse").SetValue(false); + } + // general updates location.reloadMap(); location.updateSeasonalTileSheets(); -- cgit From 4aecc2aabadd7b969aebd4c8914f433fc079fd53 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 16 Oct 2020 20:09:03 -0400 Subject: prepare for release --- src/SMAPI/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/SMAPI') diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs index 3927d477..754ab295 100644 --- a/src/SMAPI/Constants.cs +++ b/src/SMAPI/Constants.cs @@ -51,7 +51,7 @@ namespace StardewModdingAPI ** Public ****/ /// SMAPI's current semantic version. - public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.7.4"); + public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.7.5"); /// The minimum supported version of Stardew Valley. public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1"); -- cgit