diff --git a/SEWorldGenPlugin/Generator/MyStarSystemGenerator.cs b/SEWorldGenPlugin/Generator/MyStarSystemGenerator.cs index 870123d..32f4a59 100644 --- a/SEWorldGenPlugin/Generator/MyStarSystemGenerator.cs +++ b/SEWorldGenPlugin/Generator/MyStarSystemGenerator.cs @@ -837,6 +837,16 @@ public override void UpdateBeforeSimulation() } } } + foreach (var obj in StarSystem.GetAllByType(MySystemObjectType.MOON)) + { + if (obj is MySystemPlanetMoon) + { + if ((obj as MySystemPlanetMoon).EntityId == p.EntityId) + { + exists = true; + } + } + } if (!exists && StarSystem.CenterObject != null) { MySystemPlanet vanillaPlanet = new MySystemPlanet();