summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/CoreAssetPropagator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-22 20:17:01 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-22 20:17:01 -0500
commit8fd2a6fd3a3de037055ccd8ec350c92ba2cdda9d (patch)
tree5364ca468c1e687098ce35a956ffe1acd9a41ddc /src/SMAPI/Metadata/CoreAssetPropagator.cs
parent546012da8c6ab5e29f34926cda47756d6d18c326 (diff)
downloadSMAPI-8fd2a6fd3a3de037055ccd8ec350c92ba2cdda9d.tar.gz
SMAPI-8fd2a6fd3a3de037055ccd8ec350c92ba2cdda9d.tar.bz2
SMAPI-8fd2a6fd3a3de037055ccd8ec350c92ba2cdda9d.zip
update for new map override logic in SDV 1.5.4
Special thanks to the Stardew Valley developers for making the requested changes!
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssetPropagator.cs')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 859a1b7a..4b911a83 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -784,32 +784,10 @@ namespace StardewModdingAPI.Metadata
/// <param name="location">The location whose map to reload.</param>
private void ReloadMap(GameLocation location)
{
- // reset patch caches
- this.Reflection.GetField<HashSet<string>>(location, "_appliedMapOverrides").GetValue().Clear();
- switch (location)
- {
- 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;
-
- case Beach _:
- case BeachNightMarket _:
- case Forest _:
- this.Reflection.GetField<bool>(location, "hasShownCCUpgrade").SetValue(false);
- break;
-
- case Mountain _:
- this.Reflection.GetField<bool>(location, "bridgeRestored").SetValue(false);
- break;
- }
-
- // general updates
+ // reload map
location.reloadMap();
- location.updateSeasonalTileSheets();
location.updateWarps();
+ location.MakeMapModifications(force: true);
// update interior doors
location.interiorDoors.Clear();