Fixed "an item with the same key has already been added" exceptions caused by humanhusk.xml being in the same folder as human.xml. Closes #283

This commit is contained in:
Joonas Rikkonen
2018-02-25 18:35:31 +02:00
parent ff5afb7089
commit 0827c475ba

View File

@@ -358,7 +358,7 @@ namespace Barotrauma.Networking
monsterEnabled = new Dictionary<string, bool>();
foreach (string s in monsterNames)
{
monsterEnabled.Add(s, true);
if (!monsterEnabled.ContainsKey(s)) monsterEnabled.Add(s, true);
}
extraCargo = new Dictionary<ItemPrefab, int>();
}