summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs9
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
{