diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-25 11:41:56 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-03-25 11:41:56 -0400 |
commit | b1cc6c1d9995db2eccead2a2c99f8f64ddb1da81 (patch) | |
tree | 66ecda7cbd2a6afcf50d50a43f592f47860f2fe4 /src/SMAPI/Metadata | |
parent | 5a0e49827be92d19dfdda7bb15ca15fa8f269ecb (diff) | |
download | SMAPI-b1cc6c1d9995db2eccead2a2c99f8f64ddb1da81.tar.gz SMAPI-b1cc6c1d9995db2eccead2a2c99f8f64ddb1da81.tar.bz2 SMAPI-b1cc6c1d9995db2eccead2a2c99f8f64ddb1da81.zip |
update new asset update logic for Stardew Valley 1.3 (#453)
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 1702ee26..277da525 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -195,8 +195,10 @@ namespace StardewModdingAPI.Metadata /**** ** Content\Critters ****/ +#if !STARDEW_VALLEY_1_3 case "tilesheets\\critters": // Criter.InitShared return Critter.critterTexture = content.Load<Texture2D>(key); +#endif case "tilesheets\\crops": // Game1.loadContent return Game1.cropSpriteSheet = content.Load<Texture2D>(key); @@ -427,7 +429,11 @@ namespace StardewModdingAPI.Metadata // update portrait Texture2D texture = content.Load<Texture2D>(key); foreach (NPC character in characters) +#if STARDEW_VALLEY_1_3 + this.Reflection.GetField<Texture2D>(character.Sprite, "spriteTexture").SetValue(texture); +#else character.Sprite.Texture = texture; +#endif return true; } |