[Content Patcher] seasonal cat no longer applied correctly
Pathoschild opened this issue ยท 2 comments
Seasonal textures for the cat are no longer applied correctly in 1.6+, but work correctly if you downgrade to 1.5.3.
Repro steps:
- Install the BlueWind95 Cat Sphynx Replacer.
- Edit its
config.json
and set"CatColor": "seasonal"
. - Launch the game.
- Result: the cat still shows the default texture, and
patch summary
shows this:loaded | conditions | applied | name + details ------- | ---------- | ------- | -------------- [X] | [X] | [ ] | entry #12 (Load Animals/cat)
Fixed in the upcoming SMAPI 2.11 via Pathoschild/SMAPI@44402c8.
Content Patcher 1.6+ updates context at the SaveLoadedBasicInfo
stage of the save load. That's after the NPCs are deserialised from the XML file (thus caching the texture), but before they're added to the game (thus letting SMAPI propagate changes). Content Patcher does re-update context when the save is fully loaded, but at that point it determines that the patch conditions haven't changed (e.g. the season in the repro steps), so it doesn't reapply them.