From d7c30a9892b52d87b30cafd44ef4ada5d86a1bd5 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Thu, 21 Jul 2022 16:53:18 -0700 Subject: [PATCH] dont do useless Select --- NewHorizons/Handlers/PlanetCreationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index 9e22c615..9950b886 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -113,7 +113,7 @@ namespace NewHorizons.Handlers Logger.Log("Loading Deferred Bodies"); // Make a copy of the next pass of bodies so that the array can be edited while we load them - toLoad = _nextPassBodies.Select(x => x).ToList(); + toLoad = _nextPassBodies.ToList(); while (_nextPassBodies.Count != 0) { foreach (var body in toLoad)