summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-10-16 20:14:35 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-10-16 20:14:35 -0400
commite20d26adcf7276c7f12ab9ab6ea0311953aa5194 (patch)
treecf7de9adbc144797f00954d2e3574ac8393bec7a /src
parentc87cd3b0028de6e9b4ed0eaacbc73cb83d64cd46 (diff)
parent4aecc2aabadd7b969aebd4c8914f433fc079fd53 (diff)
downloadSMAPI-e20d26adcf7276c7f12ab9ab6ea0311953aa5194.tar.gz
SMAPI-e20d26adcf7276c7f12ab9ab6ea0311953aa5194.tar.bz2
SMAPI-e20d26adcf7276c7f12ab9ab6ea0311953aa5194.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Mods.ConsoleCommands/manifest.json4
-rw-r--r--src/SMAPI.Mods.SaveBackup/manifest.json4
-rw-r--r--src/SMAPI/Constants.cs2
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs8
4 files changed, 13 insertions, 5 deletions
diff --git a/src/SMAPI.Mods.ConsoleCommands/manifest.json b/src/SMAPI.Mods.ConsoleCommands/manifest.json
index a8499ce2..300350e4 100644
--- a/src/SMAPI.Mods.ConsoleCommands/manifest.json
+++ b/src/SMAPI.Mods.ConsoleCommands/manifest.json
@@ -1,9 +1,9 @@
{
"Name": "Console Commands",
"Author": "SMAPI",
- "Version": "3.7.4",
+ "Version": "3.7.5",
"Description": "Adds SMAPI console commands that let you manipulate the game.",
"UniqueID": "SMAPI.ConsoleCommands",
"EntryDll": "ConsoleCommands.dll",
- "MinimumApiVersion": "3.7.4"
+ "MinimumApiVersion": "3.7.5"
}
diff --git a/src/SMAPI.Mods.SaveBackup/manifest.json b/src/SMAPI.Mods.SaveBackup/manifest.json
index ed0d94a9..d1d8ae32 100644
--- a/src/SMAPI.Mods.SaveBackup/manifest.json
+++ b/src/SMAPI.Mods.SaveBackup/manifest.json
@@ -1,9 +1,9 @@
{
"Name": "Save Backup",
"Author": "SMAPI",
- "Version": "3.7.4",
+ "Version": "3.7.5",
"Description": "Automatically backs up all your saves once per day into its folder.",
"UniqueID": "SMAPI.SaveBackup",
"EntryDll": "SaveBackup.dll",
- "MinimumApiVersion": "3.7.4"
+ "MinimumApiVersion": "3.7.5"
}
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
****/
/// <summary>SMAPI's current semantic version.</summary>
- public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.7.4");
+ public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.7.5");
/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.4.1");
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();