diff --git a/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidRing/MyAsteroidRingProvider.cs b/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidRing/MyAsteroidRingProvider.cs index 4eef544..f8aec20 100644 --- a/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidRing/MyAsteroidRingProvider.cs +++ b/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidRing/MyAsteroidRingProvider.cs @@ -41,18 +41,9 @@ public class MyAsteroidRingProvider : MyAbstractAsteroidObjectProvider /// public MyAsteroidRingProvider() { - if(Static == null) - { - m_loadedRings = new Dictionary(); - - Static = this; - } - else - { - m_loadedRings = Static.m_loadedRings; + m_loadedRings = new Dictionary(); - Static = this; - } + Static = this; } public override MySystemAsteroids GenerateInstance(int systemIndex, in MySystemObject parent, double objectOrbitRadius) diff --git a/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidSphere/MyAsteroidSphereProvider.cs b/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidSphere/MyAsteroidSphereProvider.cs index e7a0d08..6342bb5 100644 --- a/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidSphere/MyAsteroidSphereProvider.cs +++ b/SEWorldGenPlugin/Generator/AsteroidObjects/AsteroidSphere/MyAsteroidSphereProvider.cs @@ -36,18 +36,9 @@ public class MyAsteroidSphereProvider : MyAbstractAsteroidObjectProvider public MyAsteroidSphereProvider() { - if(Static == null) - { - m_loadedSpheres = new Dictionary(); + m_loadedSpheres = new Dictionary(); - Static = this; - } - else - { - m_loadedSpheres = Static.m_loadedSpheres; - - Static = this; - } + Static = this; } public override MySystemAsteroids GenerateInstance(int systemIndex, in MySystemObject systemParent, double objectOrbitRadius)