Add Null Coalescing For Bramble Colors

This commit is contained in:
Ben C 2022-07-06 19:01:17 -04:00 committed by GitHub
parent a5bcd46d3f
commit 1e2cb5384e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,8 +179,8 @@ namespace NewHorizons.Builder.Props
// change the colors
//
if (config.isSeed) SetSeedColors(brambleNode, config.fogTint.ToColor(), config.lightTint.ToColor());
else SetNodeColors(brambleNode, config.fogTint.ToColor(), config.lightTint.ToColor());
if (config.isSeed) SetSeedColors(brambleNode, config.fogTint?.ToColor(), config.lightTint?.ToColor());
else SetNodeColors(brambleNode, config.fogTint?.ToColor(), config.lightTint?.ToColor());
//
// set up warps