From 6a43e6dfad0f4d3a17ea20ef391fe760135f1c24 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 23 Mar 2022 01:16:42 -0400 Subject: fix unneeded cloning (#766) --- src/SMAPI/Framework/SCore.cs | 6 +----- 1 file changed, 1 insertion(+), 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()) ); } } -- cgit