From 129c9f594a1569d19d23177ed186164080bdd7af Mon Sep 17 00:00:00 2001 From: xen-42 Date: Wed, 5 Mar 2025 12:15:39 -0500 Subject: [PATCH] Fix backwards compat that was breaking Lonesome Lake --- NewHorizons/External/Configs/PlanetConfig.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/NewHorizons/External/Configs/PlanetConfig.cs b/NewHorizons/External/Configs/PlanetConfig.cs index 596ca54f..c4965f6a 100644 --- a/NewHorizons/External/Configs/PlanetConfig.cs +++ b/NewHorizons/External/Configs/PlanetConfig.cs @@ -669,14 +669,12 @@ namespace NewHorizons.External.Configs { if (!string.IsNullOrEmpty(volume.gameOverText)) { - if (volume.gameOver == null) - { - volume.gameOver = new(); - } + volume.gameOver ??= new(); volume.gameOver.text = volume.gameOverText; } if (volume.creditsType != null) { + volume.gameOver ??= new(); volume.gameOver.creditsType = (SerializableEnums.NHCreditsType)volume.creditsType; } }