fix unneeded cloning (#766)

This commit is contained in:
Jesse Plamondon-Willard 2022-03-23 01:16:42 -04:00
parent 584725bb8e
commit 6a43e6dfad
No known key found for this signature in database
GPG Key ID: CF8B1456B3E29F49
1 changed files with 1 additions and 5 deletions

View File

@ -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())
);
}
}