diff --git a/Dynamic Asteroids/Data/Scripts/DynamicAsteroids/AsteroidSettings.cs b/Dynamic Asteroids/Data/Scripts/DynamicAsteroids/AsteroidSettings.cs index e3243572..5f4ab973 100644 --- a/Dynamic Asteroids/Data/Scripts/DynamicAsteroids/AsteroidSettings.cs +++ b/Dynamic Asteroids/Data/Scripts/DynamicAsteroids/AsteroidSettings.cs @@ -1,10 +1,10 @@ using System; -using System.Collections.Generic; using System.IO; using DynamicAsteroids.AsteroidEntities; using Invalid.DynamicRoids; using Sandbox.ModAPI; using VRageMath; +using System.Collections.Generic; namespace DynamicAsteroids { @@ -397,6 +397,17 @@ public static void LoadSettings() if (currentArea != null) ValidSpawnLocations.Add(currentArea); } } + else + { + // Create default configuration if it doesn't exist + ValidSpawnLocations.Add(new SpawnableArea + { + Name = "DefaultArea", + CenterPosition = new Vector3D(0.0, 0.0, 0.0), + Radius = 10000 + }); + SaveSettings(); + } } catch (Exception ex) {