This commit is contained in:
Noah Pilarski 2022-09-10 12:15:21 -04:00
parent a4dc54712a
commit 8705bd54b6

View File

@ -405,10 +405,20 @@ namespace NewHorizons.External.Configs
if (!string.IsNullOrEmpty(Cloak.audioFilePath)) Cloak.audio = Cloak.audioFilePath;
}
// Rings are no longer variable size module
// Ring is now a list so you can have many per planet
if (Ring != null)
{
if (Ring.curve != null) Ring.scaleCurve = Ring.curve;
if (Rings == null) Rings = new RingModule[0];
Rings = Rings.Append(Ring).ToArray();
}
// Rings are no longer variable size module
if (Rings != null)
{
foreach (var ring in Rings)
{
if (ring.curve != null) ring.scaleCurve = ring.curve;
}
}
}
}