summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-19 01:05:15 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-19 01:05:15 -0500
commit5676d94fe655c42e50c27b5eae72b9c96cfc2476 (patch)
treeaefee9b8c44639620bd04550ffe14adf31f166e9
parent00e545715d89f32ab999a3b1f6ae70edec158591 (diff)
downloadSMAPI-5676d94fe655c42e50c27b5eae72b9c96cfc2476.tar.gz
SMAPI-5676d94fe655c42e50c27b5eae72b9c96cfc2476.tar.bz2
SMAPI-5676d94fe655c42e50c27b5eae72b9c96cfc2476.zip
reset some missed map cache fields (#751)
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs5
2 files changed, 7 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index bc50b197..8e31b79c 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -18,7 +18,8 @@
* Network messages through the multiplayer API are no longer sent to players who don't have SMAPI installed. This reduces unneeded network traffic (since they can't read it anyway) and avoids an error in some cases.
* Improved asset propagation:
* Added propagation for some `Strings\StringsFromCSFiles` keys (mainly short day names).
- * Fixed some town patches not reapplied when the map is reloaded in Stardew Valley 1.5.
+ * Fixed some of the game's map changes not reapplied after reloading a map in Stardew Valley 1.5.
+ * Fixed quarry bridge not fixed if the mountain map was reloaded.
* Added an option to disable rewriting mods for compatibility (thanks to Bpendragon!). This prevents older mods from loading but bypasses a Visual Studio debugger crash.
* Game errors shown in the chatbox are now logged.
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 29c4dc1d..859a1b7a 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -791,6 +791,7 @@ namespace StardewModdingAPI.Metadata
case Town _:
this.Reflection.GetField<bool>(location, "ccRefurbished").SetValue(false);
this.Reflection.GetField<bool>(location, "isShowingDestroyedJoja").SetValue(false);
+ this.Reflection.GetField<bool>(location, "isShowingSpecialOrdersBoard").SetValue(false);
this.Reflection.GetField<bool>(location, "isShowingUpgradedPamHouse").SetValue(false);
break;
@@ -799,6 +800,10 @@ namespace StardewModdingAPI.Metadata
case Forest _:
this.Reflection.GetField<bool>(location, "hasShownCCUpgrade").SetValue(false);
break;
+
+ case Mountain _:
+ this.Reflection.GetField<bool>(location, "bridgeRestored").SetValue(false);
+ break;
}
// general updates