summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-18 23:19:34 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-18 23:19:34 -0500
commit00e545715d89f32ab999a3b1f6ae70edec158591 (patch)
treea6dbf4b259dab81c77dba175ee8c29495958b19b /src/SMAPI/Metadata
parent9fb6d67417ee3f2db0754b135786e052ae308683 (diff)
downloadSMAPI-00e545715d89f32ab999a3b1f6ae70edec158591.tar.gz
SMAPI-00e545715d89f32ab999a3b1f6ae70edec158591.tar.bz2
SMAPI-00e545715d89f32ab999a3b1f6ae70edec158591.zip
reset map overrides when reloading a map (#751)
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 24b578ad..29c4dc1d 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -785,6 +785,7 @@ namespace StardewModdingAPI.Metadata
private void ReloadMap(GameLocation location)
{
// reset patch caches
+ this.Reflection.GetField<HashSet<string>>(location, "_appliedMapOverrides").GetValue().Clear();
switch (location)
{
case Town _: