summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-11-12 13:50:02 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-11-12 13:50:02 -0500
commit57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c (patch)
tree8cc4f389ba14923758235ee7ae9c075c294ba554 /src/SMAPI/Metadata
parentc1e3b25dcaff2406fa1e3a457c1ba9c0f8ecda7f (diff)
downloadSMAPI-57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c.tar.gz
SMAPI-57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c.tar.bz2
SMAPI-57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c.zip
also update multiplayer map cache for host player
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 037e4573..97ae32e4 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -1171,9 +1171,8 @@ namespace StardewModdingAPI.Metadata
GameLocation location = locationInfo.Location;
Vector2? playerPos = Game1.player?.Position;
- // clear multiplayer cache for farmhands
- if (!Context.IsMainPlayer)
- this.Multiplayer.cachedMultiplayerMaps.Remove(location.NameOrUniqueName);
+ // remove from multiplayer cache
+ this.Multiplayer.cachedMultiplayerMaps.Remove(location.NameOrUniqueName);
// reload map
location.interiorDoors.Clear(); // prevent errors when doors try to update tiles which no longer exist