fix looping of obsolete effects builder method

oopsie daisies. this only affected dreamstalker lol.
This commit is contained in:
Noah Pilarski 2024-01-01 22:58:42 -05:00
parent 02b4c2b522
commit 8a789b2ae2

View File

@ -59,11 +59,11 @@ namespace NewHorizons.Builder.Atmosphere
// Dreamstalker needed this one // Dreamstalker needed this one
[Obsolete] [Obsolete]
public static void Make(GameObject planetGO, Sector sector, PlanetConfig config, float surfaceHeight) public static void Make(GameObject planetGO, Sector sector, PlanetConfig config, float surfaceHeight)
=> Make(planetGO, sector, config, surfaceHeight); => InternalMake(planetGO, sector, config, surfaceHeight);
#endregion #endregion
public static void Make(GameObject planetGO, Sector sector, PlanetConfig config) public static void Make(GameObject planetGO, Sector sector, PlanetConfig config)
=> Make(planetGO, sector, config, null); => InternalMake(planetGO, sector, config, null);
/// <summary> /// <summary>
/// Nullable surface height for backwards compat /// Nullable surface height for backwards compat
@ -72,7 +72,7 @@ namespace NewHorizons.Builder.Atmosphere
/// <param name="sector"></param> /// <param name="sector"></param>
/// <param name="config"></param> /// <param name="config"></param>
/// <param name="surfaceHeight"></param> /// <param name="surfaceHeight"></param>
private static void Make(GameObject planetGO, Sector sector, PlanetConfig config, float? surfaceHeight) private static void InternalMake(GameObject planetGO, Sector sector, PlanetConfig config, float? surfaceHeight)
{ {
InitPrefabs(); InitPrefabs();