diff --git a/NewHorizons/Handlers/PlanetDestructionHandler.cs b/NewHorizons/Handlers/PlanetDestructionHandler.cs index 73ed138b..7b74d1f5 100644 --- a/NewHorizons/Handlers/PlanetDestructionHandler.cs +++ b/NewHorizons/Handlers/PlanetDestructionHandler.cs @@ -43,7 +43,7 @@ namespace NewHorizons.Handlers var sunVolumes = SearchUtilities.Find("Sun_Body/Sector_SUN/Volumes_SUN"); sunVolumes.SetActive(false); - foreach (var ow in GameObject.FindObjectsOfType()) + foreach (var ow in CenterOfTheUniverse.s_rigidbodies) { if (ow._origParent != null && (ow._origParentBody != null || ow._simulateInSector != null) && ow.transform.GetComponent() == null && !ow._suspended && !_suspendBlacklist.Contains(ow.gameObject.name)) {