summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/SnapshotListDiff.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-25 11:05:36 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-01-25 11:05:36 -0500
commit4db7ca28f68be2e25b565a1b98e2c05fb42a5a88 (patch)
tree331510c23d59a3a718f00f7e6bcd4a075290f8af /src/SMAPI/Framework/SnapshotListDiff.cs
parente33386abcc03c6fd94c365309a23e66f0fe9d6eb (diff)
downloadSMAPI-4db7ca28f68be2e25b565a1b98e2c05fb42a5a88.tar.gz
SMAPI-4db7ca28f68be2e25b565a1b98e2c05fb42a5a88.tar.bz2
SMAPI-4db7ca28f68be2e25b565a1b98e2c05fb42a5a88.zip
fix error building/demolishing buildings for some players
Diffstat (limited to 'src/SMAPI/Framework/SnapshotListDiff.cs')
-rw-r--r--src/SMAPI/Framework/SnapshotListDiff.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/SnapshotListDiff.cs b/src/SMAPI/Framework/SnapshotListDiff.cs
index d4d5df50..2d0efa0d 100644
--- a/src/SMAPI/Framework/SnapshotListDiff.cs
+++ b/src/SMAPI/Framework/SnapshotListDiff.cs
@@ -42,10 +42,12 @@ namespace StardewModdingAPI.Framework
this.IsChanged = isChanged;
this.RemovedImpl.Clear();
- this.RemovedImpl.AddRange(removed);
+ if (removed != null)
+ this.RemovedImpl.AddRange(removed);
this.AddedImpl.Clear();
- this.AddedImpl.AddRange(added);
+ if (added != null)
+ this.AddedImpl.AddRange(added);
}
/// <summary>Update the snapshot.</summary>