(8a4fb72fa) ToHashSet compiler error fix part #2

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:48:17 +03:00
parent a4bb8efa79
commit 58330e8ec9
12 changed files with 374 additions and 685 deletions
@@ -459,12 +459,11 @@ namespace Barotrauma
DebugConsole.Log(" " + name);
Aliases =
Aliases = new HashSet<string>
(element.GetAttributeStringArray("aliases", null, convertToLowerInvariant: true) ??
element.GetAttributeStringArray("Aliases", new string[0], convertToLowerInvariant: true)).ToHashSet();
element.GetAttributeStringArray("Aliases", new string[0], convertToLowerInvariant: true));
Aliases.Add(nonTranslatedName.ToLowerInvariant());
if (!Enum.TryParse(element.GetAttributeString("category", "Misc"), true, out MapEntityCategory category))
{
category = MapEntityCategory.Misc;