Skip to content

Commit a4326f5

Browse files
committed
Switch to a Copy
This is pretty much just as efficient as all the old overhead was in the TileIndexProperties logic, but means its always a copy and wont have cache mutability problems
1 parent 4655ae3 commit a4326f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SMAPI/Framework/Content/AssetDataForMap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void PatchMap(Map source, Rectangle? sourceArea = null, Rectangle? target
9191

9292
// add tilesheet
9393
targetSheet = new TileSheet(id, target, sourceSheet.ImageSource, sourceSheet.SheetSize, sourceSheet.TileSize);
94-
this.Reflection.GetField<PropertyCollection>(targetSheet, "m_propertyCollection").SetValue((PropertyCollection)sourceSheet.Properties);
94+
targetSheet.Properties.CopyFrom(sourceSheet.Properties);
9595
target.AddTileSheet(targetSheet);
9696
}
9797

0 commit comments

Comments
 (0)