also update multiplayer map cache for host player

This commit is contained in:
Jesse Plamondon-Willard 2022-11-12 13:50:02 -05:00
parent c1e3b25dca
commit 57d3e2b98e
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 2 additions and 3 deletions

View File

@ -1171,9 +1171,8 @@ namespace StardewModdingAPI.Metadata
GameLocation location = locationInfo.Location; GameLocation location = locationInfo.Location;
Vector2? playerPos = Game1.player?.Position; Vector2? playerPos = Game1.player?.Position;
// clear multiplayer cache for farmhands // remove from multiplayer cache
if (!Context.IsMainPlayer) this.Multiplayer.cachedMultiplayerMaps.Remove(location.NameOrUniqueName);
this.Multiplayer.cachedMultiplayerMaps.Remove(location.NameOrUniqueName);
// reload map // reload map
location.interiorDoors.Clear(); // prevent errors when doors try to update tiles which no longer exist location.interiorDoors.Clear(); // prevent errors when doors try to update tiles which no longer exist