Fix backwards compat that was breaking Lonesome Lake

This commit is contained in:
xen-42 2025-03-05 12:15:39 -05:00
parent d7699a4556
commit 129c9f594a

View File

@ -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;
}
}