fix asset propagation for localized movie data
This commit is contained in:
parent
3dc344054a
commit
1a4cdd71a5
|
@ -10,8 +10,12 @@
|
|||
## Upcoming release
|
||||
* For players:
|
||||
* On macOS, the `StardewModdingAPI.bin.osx` file is no longer overwritten if it's identical to avoid resetting file permissions (thanks to 007wayne!).
|
||||
* Fixed error for non-English players after returning to title, reloading, and entering town with a completed movie theater.
|
||||
* Fixed `world_clear` console command not removing resource clumps outside the farm and secret woods.
|
||||
|
||||
* For modders:
|
||||
* Added asset propagation for `Data\Concessions`.
|
||||
|
||||
## 3.9.5
|
||||
Released 21 March 2021 for Stardew Valley 1.5.4 or later.
|
||||
|
||||
|
|
|
@ -286,6 +286,10 @@ namespace StardewModdingAPI.Metadata
|
|||
Game1.clothingInformation = content.Load<Dictionary<int, string>>(key);
|
||||
return true;
|
||||
|
||||
case "data\\concessions": // MovieTheater.GetConcessions
|
||||
MovieTheater.ClearCachedLocalizedData();
|
||||
return true;
|
||||
|
||||
case "data\\concessiontastes": // MovieTheater.GetConcessionTasteForCharacter
|
||||
this.Reflection
|
||||
.GetField<List<ConcessionTaste>>(typeof(MovieTheater), "_concessionTastes")
|
||||
|
@ -306,16 +310,9 @@ namespace StardewModdingAPI.Metadata
|
|||
case "data\\hairdata": // Farmer.GetHairStyleMetadataFile
|
||||
return this.ReloadHairData();
|
||||
|
||||
case "data\\moviesreactions": // MovieTheater.GetMovieReactions
|
||||
this.Reflection
|
||||
.GetField<List<MovieCharacterReaction>>(typeof(MovieTheater), "_genericReactions")
|
||||
.SetValue(content.Load<List<MovieCharacterReaction>>(key));
|
||||
return true;
|
||||
|
||||
case "data\\movies": // MovieTheater.GetMovieData
|
||||
this.Reflection
|
||||
.GetField<Dictionary<string, MovieData>>(typeof(MovieTheater), "_movieData")
|
||||
.SetValue(content.Load<Dictionary<string, MovieData>>(key));
|
||||
case "data\\moviesreactions": // MovieTheater.GetMovieReactions
|
||||
MovieTheater.ClearCachedLocalizedData();
|
||||
return true;
|
||||
|
||||
case "data\\npcdispositions": // NPC constructor
|
||||
|
|
Loading…
Reference in New Issue