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:
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user