add asset propagation for Data/ChairTiles

This commit is contained in:
Jesse Plamondon-Willard
2024-08-20 22:45:00 -04:00
parent 26cfac0160
commit 67658b8863
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@
* Added `DoesAssetExist` methods to `helper.GameContent` and `helper.ModContent` (thanks to KhloeLeclair!).
* Added scroll wheel suppression via `helper.Input.SuppressScrollWheel()` (thanks to MercuriusXeno!).
* Added `PathUtilities.AnonymizePathForDisplay` to anonymize home paths (thanks to AnotherPillow!).
* Added asset propagation for `Data/ChairTiles`.
* Updated dependencies, including [FluentHttpClient](https://github.com/Pathoschild/FluentHttpClient#readme) 4.3.0 → 4.4.0 (see [changes](https://github.com/Pathoschild/FluentHttpClient/blob/develop/RELEASE-NOTES.md#440)) and [Pintail](https://github.com/Nanoray-pl/Pintail) 2.3.0 → 2.4.2 (see [changes](https://github.com/Nanoray-pl/Pintail/blob/master/docs/release-notes.md#242)).
* The SMAPI log now includes the assembly version of each loaded mod (thanks to spacechase0!).
* Fixed `content.Load` ignoring language override in recent versions.
+13
View File
@@ -328,6 +328,19 @@ namespace StardewModdingAPI.Metadata
}
return true;
case "data/chairtiles": // GameLocation.loadMap
if (!ignoreWorld)
{
Utility.ForEachLocation(location =>
{
if (Context.IsMainPlayer || location.IsTemporary)
this.Reflection.GetField<bool>(location, "__mapSeatsDirty").SetValue(true);
return true;
});
}
return true;
case "data/characters": // Game1.LoadContent
Game1.characterData = DataLoader.Characters(content);
if (!ignoreWorld)