Commit a0beb10
committed
handle textures whose assets no longer exist during asset propagation
Textures are reloaded in-place in Stardew Valley 1.6. That's much more efficient than the previous approach, but SMAPI can't take the game context into account anymore during asset propagation. That means textures which SMAPI would previously skip are now reloaded and may fail. For example, custom NPCs still exist in-memory when you return to title (since the game state isn't cleared yet), but often the mods which provide their portraits/sprites have unloaded their patches (e.g. because they depend on in-save Content Patcher tokens).
This commit mitigates that by logging a small warning when it happens, instead of the giant exception trace it logs otherwise.1 parent 2d178bb commit a0beb10
1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
173 | 182 | | |
174 | 183 | | |
175 | 184 | | |
| |||
0 commit comments