diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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<bool>(town, "ccRefurbished").SetValue(false); + this.Reflection.GetField<bool>(town, "isShowingDestroyedJoja").SetValue(false); + this.Reflection.GetField<bool>(town, "isShowingUpgradedPamHouse").SetValue(false); + } + // general updates location.reloadMap(); location.updateSeasonalTileSheets(); |