Skip to content

Commit

Permalink
add asset propagation for Data/ChairTiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathoschild committed Aug 21, 2024
1 parent 26cfac0 commit 67658b8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 13 additions & 0 deletions src/SMAPI/Metadata/CoreAssetPropagator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,19 @@ static ISet<string> GetWarpSet(GameLocation location)
}
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)
Expand Down

0 comments on commit 67658b8

Please sign in to comment.