Build 1.1.4.0
This commit is contained in:
@@ -13,11 +13,12 @@ namespace Barotrauma
|
||||
byte monsterCount = msg.ReadByte();
|
||||
for (int i = 0; i < monsterCount; i++)
|
||||
{
|
||||
monsters.Add(Character.ReadSpawnData(msg));
|
||||
}
|
||||
if (monsters.Contains(null))
|
||||
{
|
||||
throw new System.Exception("Error in MonsterMission.ClientReadInitial: monster list contains null (mission: " + Prefab.Identifier + ")");
|
||||
var monster = Character.ReadSpawnData(msg);
|
||||
if (monster == null)
|
||||
{
|
||||
throw new System.Exception($"Error in MonsterMission.ClientReadInitial: failed to create a monster (mission: {Prefab.Identifier}, index: {i})");
|
||||
}
|
||||
monsters.Add(monster);
|
||||
}
|
||||
if (monsters.Count != monsterCount)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user