(ef2bdb136) Fixed "biome "none" not found" console error when loading level generation params

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:51:22 +03:00
parent e3a485edd3
commit 809fa5adb0
4 changed files with 35 additions and 299 deletions
@@ -398,6 +398,8 @@ namespace Barotrauma
for (int i = 0; i < biomeNames.Length; i++)
{
string biomeName = biomeNames[i].Trim().ToLowerInvariant();
if (biomeName == "none") { continue; }
Biome matchingBiome = biomes.Find(b => b.Name.ToLowerInvariant() == biomeName);
if (matchingBiome == null)
{