summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata/CoreAssetPropagator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-24 00:32:26 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-24 00:32:26 -0500
commit5129c361c94bd2f4e2e9ef8d39235dc6159a849d (patch)
tree47eed98f347e1256ed20d611868cb67a878c04d2 /src/SMAPI/Metadata/CoreAssetPropagator.cs
parent4c0272c0aaec58fbd457e87650f66a067efc2fee (diff)
downloadSMAPI-5129c361c94bd2f4e2e9ef8d39235dc6159a849d.tar.gz
SMAPI-5129c361c94bd2f4e2e9ef8d39235dc6159a849d.tar.bz2
SMAPI-5129c361c94bd2f4e2e9ef8d39235dc6159a849d.zip
fix interior door errors when reloading maps
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssetPropagator.cs')
-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 4b911a83..f486321e 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)
{
// reload map
+ location.interiorDoors.Clear(); // prevent errors when doors try to update tiles which no longer exist
location.reloadMap();
location.updateWarps();
location.MakeMapModifications(force: true);