diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-13 18:56:59 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-11-28 00:01:43 -0500 |
commit | 897edd7ff0c4a69289330e086b9b03e7a756b15c (patch) | |
tree | c3b8a45afcf2927ee1e2668a5b42297618965c66 | |
parent | e10a7858a0f3720dca1caf3e0f17db720bd69965 (diff) | |
download | SMAPI-897edd7ff0c4a69289330e086b9b03e7a756b15c.tar.gz SMAPI-897edd7ff0c4a69289330e086b9b03e7a756b15c.tar.bz2 SMAPI-897edd7ff0c4a69289330e086b9b03e7a756b15c.zip |
update for accessibility change in Stardew Valley 1.5.5
-rw-r--r-- | src/SMAPI/Metadata/CoreAssetPropagator.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs index 7efd99a0..1780b280 100644 --- a/src/SMAPI/Metadata/CoreAssetPropagator.cs +++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs @@ -226,13 +226,8 @@ namespace StardewModdingAPI.Metadata ** Buildings ****/ case "buildings\\houses": // Farm - { - var field = reflection.GetField<Texture2D>(typeof(Farm), nameof(Farm.houseTextures)); - field.SetValue( - this.LoadAndDisposeIfNeeded(field.GetValue(), key) - ); - return true; - } + Farm.houseTextures = this.LoadAndDisposeIfNeeded(Farm.houseTextures, key); + return true; case "buildings\\houses_paintmask": // Farm { |