diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-03-23 01:16:42 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-03-23 01:16:42 -0400 |
commit | 6a43e6dfad0f4d3a17ea20ef391fe760135f1c24 (patch) | |
tree | 55dab58ee8466ab149e03a8f100a3fc71de63985 | |
parent | 584725bb8e554e314843315facca1fd15868bee4 (diff) | |
download | SMAPI-6a43e6dfad0f4d3a17ea20ef391fe760135f1c24.tar.gz SMAPI-6a43e6dfad0f4d3a17ea20ef391fe760135f1c24.tar.bz2 SMAPI-6a43e6dfad0f4d3a17ea20ef391fe760135f1c24.zip |
fix unneeded cloning (#766)
-rw-r--r-- | src/SMAPI/Framework/SCore.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs index f0340cf5..f9f84206 100644 --- a/src/SMAPI/Framework/SCore.cs +++ b/src/SMAPI/Framework/SCore.cs @@ -1122,11 +1122,7 @@ namespace StardewModdingAPI.Framework if (args.LoadOperations.Any() || args.EditOperations.Any()) { operations.Add( - new AssetOperationGroup( - mod, - args.LoadOperations.Select(p => new AssetLoadOperation(mod, assetInfo => p.GetData(assetInfo))).ToArray(), - args.EditOperations.Select(p => new AssetEditOperation(mod, assetInfo => p.ApplyEdit(assetInfo))).ToArray() - ) + new AssetOperationGroup(mod, args.LoadOperations.ToArray(), args.EditOperations.ToArray()) ); } } |