From d9e6b3be8dc1ccf36c1598f1be9233f3bda4316f Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Thu, 18 Aug 2022 06:43:10 -0400 Subject: [PATCH] Wait for all bodies to shrink --- .../Components/SizeControllers/StarEvolutionController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NewHorizons/Components/SizeControllers/StarEvolutionController.cs b/NewHorizons/Components/SizeControllers/StarEvolutionController.cs index ff6215e6..7a8d5d93 100644 --- a/NewHorizons/Components/SizeControllers/StarEvolutionController.cs +++ b/NewHorizons/Components/SizeControllers/StarEvolutionController.cs @@ -247,6 +247,8 @@ namespace NewHorizons.Components.SizeControllers if (Time.time > _supernovaStartTime + supernovaTime) { + if (_destructionVolume != null && _destructionVolume._shrinkingBodies.Count > 0) return; + if (_planetDestructionVolume != null && _planetDestructionVolume._shrinkingBodies.Count > 0) return; DisableStar(); } }