diff options
author | Tyler <gibbstyler7@gmail.com> | 2022-09-05 13:11:36 -0500 |
---|---|---|
committer | Tyler <gibbstyler7@gmail.com> | 2022-09-05 13:11:36 -0500 |
commit | f0e52061e34f3a397dbe1120590d062feb1be0ef (patch) | |
tree | abfa2d54d15312b8491e0eda1ea1e13b216ecbf1 | |
parent | e7d29a2f7dabde75fb1ad76af1975c9194b1b8bd (diff) | |
download | SMAPI-f0e52061e34f3a397dbe1120590d062feb1be0ef.tar.gz SMAPI-f0e52061e34f3a397dbe1120590d062feb1be0ef.tar.bz2 SMAPI-f0e52061e34f3a397dbe1120590d062feb1be0ef.zip |
fix ComparableListWatcher not removing items in zero case
-rw-r--r-- | src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs b/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs index 0b13434a..b24f4178 100644 --- a/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs +++ b/src/SMAPI/Framework/StateTracking/FieldWatchers/ComparableListWatcher.cs @@ -63,7 +63,7 @@ namespace StardewModdingAPI.Framework.StateTracking.FieldWatchers { if (this.LastValues.Count > 0) { - this.AddedImpl.AddRange(this.LastValues); + this.RemovedImpl.AddRange(this.LastValues); this.LastValues.Clear(); } return; |