diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-11-12 13:50:02 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-11-12 13:50:02 -0500 |
commit | 57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c (patch) | |
tree | 8cc4f389ba14923758235ee7ae9c075c294ba554 /src/SMAPI/Metadata/CoreAssetPropagator.cs | |
parent | c1e3b25dcaff2406fa1e3a457c1ba9c0f8ecda7f (diff) | |
download | SMAPI-57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c.tar.gz SMAPI-57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c.tar.bz2 SMAPI-57d3e2b98ed5429e4bd61cd1cd33b84ec3ad7b8c.zip |
also update multiplayer map cache for host player
Diffstat (limited to 'src/SMAPI/Metadata/CoreAssetPropagator.cs')
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 5 |
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 |