fix tilesheets not seasonalised when a map is reloaded (#642)

This commit is contained in:
Jesse Plamondon-Willard 2019-05-23 14:56:44 -04:00
parent 732d66f1fe
commit 24160cacdc
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
2 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ These changes have not been released yet.
* Fixed some assets not updated when you switch language to English.
* Fixed lag in some cases due to incorrect asset caching when playing in non-English.
* Fixed lag when a mod invalidates many NPC portraits/sprites at once.
* Fixed seasonal tilesheet issues when a mod reloads a map.
* For modders:
* Added support for content pack translations.

View File

@ -139,6 +139,7 @@ namespace StardewModdingAPI.Metadata
if (!string.IsNullOrWhiteSpace(location.mapPath.Value) && this.GetNormalisedPath(location.mapPath.Value) == key)
{
location.reloadMap();
location.updateSeasonalTileSheets();
location.updateWarps();
this.Reflection.GetField<InteriorDoorDictionary>(location, nameof(location.interiorDoors)).SetValue(new InteriorDoorDictionary(location));
anyChanged = true;