fix tilesheets not seasonalised when a map is reloaded (#642)
This commit is contained in:
parent
732d66f1fe
commit
24160cacdc
|
@ -17,6 +17,7 @@ These changes have not been released yet.
|
||||||
* Fixed some assets not updated when you switch language to English.
|
* 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 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 lag when a mod invalidates many NPC portraits/sprites at once.
|
||||||
|
* Fixed seasonal tilesheet issues when a mod reloads a map.
|
||||||
|
|
||||||
* For modders:
|
* For modders:
|
||||||
* Added support for content pack translations.
|
* Added support for content pack translations.
|
||||||
|
|
|
@ -139,6 +139,7 @@ namespace StardewModdingAPI.Metadata
|
||||||
if (!string.IsNullOrWhiteSpace(location.mapPath.Value) && this.GetNormalisedPath(location.mapPath.Value) == key)
|
if (!string.IsNullOrWhiteSpace(location.mapPath.Value) && this.GetNormalisedPath(location.mapPath.Value) == key)
|
||||||
{
|
{
|
||||||
location.reloadMap();
|
location.reloadMap();
|
||||||
|
location.updateSeasonalTileSheets();
|
||||||
location.updateWarps();
|
location.updateWarps();
|
||||||
this.Reflection.GetField<InteriorDoorDictionary>(location, nameof(location.interiorDoors)).SetValue(new InteriorDoorDictionary(location));
|
this.Reflection.GetField<InteriorDoorDictionary>(location, nameof(location.interiorDoors)).SetValue(new InteriorDoorDictionary(location));
|
||||||
anyChanged = true;
|
anyChanged = true;
|
||||||
|
|
Loading…
Reference in New Issue