diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-10-16 20:14:35 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-10-16 20:14:35 -0400 |
commit | e20d26adcf7276c7f12ab9ab6ea0311953aa5194 (patch) | |
tree | cf7de9adbc144797f00954d2e3574ac8393bec7a /src/SMAPI/Metadata/CoreAssetPropagator.cs | |
parent | c87cd3b0028de6e9b4ed0eaacbc73cb83d64cd46 (diff) | |
parent | 4aecc2aabadd7b969aebd4c8914f433fc079fd53 (diff) | |
download | SMAPI-e20d26adcf7276c7f12ab9ab6ea0311953aa5194.tar.gz SMAPI-e20d26adcf7276c7f12ab9ab6ea0311953aa5194.tar.bz2 SMAPI-e20d26adcf7276c7f12ab9ab6ea0311953aa5194.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssetPropagator.cs')
-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(); |