From 57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 12 Nov 2022 13:50:02 -0500 Subject: also update multiplayer map cache for host player --- src/SMAPI/Metadata/CoreAssetPropagator.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/SMAPI') 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 -- cgit