summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-13 18:48:22 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-13 18:48:22 -0400
commit4a7eb97306c2663ff214cd1c914f910d269ea780 (patch)
treef848bfe2818a2344ff4bc1eb66188b830b923c24
parentf6f4470d955c75531d40a9dc3a353d261c715d4a (diff)
downloadSMAPI-4a7eb97306c2663ff214cd1c914f910d269ea780.tar.gz
SMAPI-4a7eb97306c2663ff214cd1c914f910d269ea780.tar.bz2
SMAPI-4a7eb97306c2663ff214cd1c914f910d269ea780.zip
add asset propagation for giftbox texture
-rw-r--r--docs/release-notes.md1
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs4
2 files changed, 5 insertions, 0 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index c706619c..c51dec39 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -6,6 +6,7 @@
* Fixed crash loading mods with corrupted translation files.
* For mod authors:
+ * Added asset propagation for `LooseSprites\Giftbox`.
* Improved SMAPI's crossplatform read/writing of `Color`, `Point`, `Rectangle`, and `Vector2` in JSON to support nullable fields too.
* For the web UI:
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 708673c3..35ae26b3 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -414,6 +414,10 @@ namespace StardewModdingAPI.Metadata
SpriteText.coloredTexture = content.Load<Texture2D>(key);
return true;
+ case "loosesprites\\giftbox": // Game1.LoadContent
+ Game1.giftboxTexture = content.Load<Texture2D>(key);
+ return true;
+
case "loosesprites\\nightbg": // Game1.LoadContent
Game1.nightbg = content.Load<Texture2D>(key);
return true;