fix unneeded cloning (#766)
This commit is contained in:
parent
584725bb8e
commit
6a43e6dfad
|
@ -1122,11 +1122,7 @@ namespace StardewModdingAPI.Framework
|
||||||
if (args.LoadOperations.Any() || args.EditOperations.Any())
|
if (args.LoadOperations.Any() || args.EditOperations.Any())
|
||||||
{
|
{
|
||||||
operations.Add(
|
operations.Add(
|
||||||
new AssetOperationGroup(
|
new AssetOperationGroup(mod, args.LoadOperations.ToArray(), args.EditOperations.ToArray())
|
||||||
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()
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue