also update multiplayer map cache for host player
This commit is contained in:
parent
c1e3b25dca
commit
57d3e2b98e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue