This commit is contained in:
Nick 2022-07-13 21:47:02 -04:00
commit 196aec0928

View File

@ -43,7 +43,7 @@ namespace NewHorizons.Handlers
var sunVolumes = SearchUtilities.Find("Sun_Body/Sector_SUN/Volumes_SUN"); var sunVolumes = SearchUtilities.Find("Sun_Body/Sector_SUN/Volumes_SUN");
sunVolumes.SetActive(false); sunVolumes.SetActive(false);
foreach (var ow in GameObject.FindObjectsOfType<OWRigidbody>()) foreach (var ow in CenterOfTheUniverse.s_rigidbodies)
{ {
if (ow._origParent != null && (ow._origParentBody != null || ow._simulateInSector != null) && ow.transform.GetComponent<AstroObject>() == null && !ow._suspended && !_suspendBlacklist.Contains(ow.gameObject.name)) if (ow._origParent != null && (ow._origParentBody != null || ow._simulateInSector != null) && ow.transform.GetComponent<AstroObject>() == null && !ow._suspended && !_suspendBlacklist.Contains(ow.gameObject.name))
{ {