summaryrefslogtreecommitdiff
path: root/src/SMAPI/Metadata
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-12 00:21:52 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-05-12 00:21:52 -0400
commita9cadc7f32fd9fd244fc3e22c62a35e7c257c084 (patch)
treed07a8b34608f46948505755a599c07da65a7fde7 /src/SMAPI/Metadata
parent09f69d986f4f44521d8a2cd745269dce4b83320e (diff)
parente943ae84136d46432e04e577041850d2aa7db43e (diff)
downloadSMAPI-a9cadc7f32fd9fd244fc3e22c62a35e7c257c084.tar.gz
SMAPI-a9cadc7f32fd9fd244fc3e22c62a35e7c257c084.tar.bz2
SMAPI-a9cadc7f32fd9fd244fc3e22c62a35e7c257c084.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Metadata')
-rw-r--r--src/SMAPI/Metadata/CoreAssetPropagator.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SMAPI/Metadata/CoreAssetPropagator.cs b/src/SMAPI/Metadata/CoreAssetPropagator.cs
index 12b73515..e014f9a9 100644
--- a/src/SMAPI/Metadata/CoreAssetPropagator.cs
+++ b/src/SMAPI/Metadata/CoreAssetPropagator.cs
@@ -1017,7 +1017,9 @@ namespace StardewModdingAPI.Metadata
foreach (Farmer player in players)
{
- this.Reflection.GetField<Dictionary<string, Dictionary<int, List<int>>>?>(typeof(FarmerRenderer), "_recolorOffsets").GetValue()?.Remove(player.getTexture());
+ var recolorOffsets = this.Reflection.GetField<Dictionary<string, Dictionary<int, List<int>>>?>(typeof(FarmerRenderer), "_recolorOffsets").GetValue();
+ recolorOffsets?.Clear();
+
player.FarmerRenderer.MarkSpriteDirty();
}