mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Dont explode
This commit is contained in:
parent
42f898a3fa
commit
dc1a0b0832
@ -909,8 +909,15 @@ namespace NewHorizons
|
|||||||
{
|
{
|
||||||
if (!SystemDict.ContainsKey(config.starSystem))
|
if (!SystemDict.ContainsKey(config.starSystem))
|
||||||
{
|
{
|
||||||
NHLogger.LogError($"System config for {config.starSystem} does not exist?");
|
var starSystemConfig = new StarSystemConfig() { name = config.starSystem };
|
||||||
return null;
|
starSystemConfig.Migrate();
|
||||||
|
starSystemConfig.FixCoordinates();
|
||||||
|
|
||||||
|
var system = new NewHorizonsSystem(config.starSystem, starSystemConfig, $"", mod);
|
||||||
|
|
||||||
|
SystemDict.Add(config.starSystem, system);
|
||||||
|
|
||||||
|
BodyDict.Add(config.starSystem, new List<NewHorizonsBody>());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Has to happen after we make sure theres a system config
|
// Has to happen after we make sure theres a system config
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user