Sync monster spawn settings

This commit is contained in:
juanjp600
2017-04-06 16:50:11 -03:00
parent 4ad373294c
commit e1d5d63dbd
6 changed files with 47 additions and 8 deletions

View File

@@ -137,7 +137,15 @@ namespace Barotrauma
}
ConstructorInfo constructor = t.GetConstructor(new[] { typeof(XElement) });
object instance = constructor.Invoke(new object[] { element });
object instance = null;
try
{
instance = constructor.Invoke(new object[] { element });
}
catch (Exception ex)
{
DebugConsole.ThrowError(ex.InnerException!=null ? ex.InnerException.ToString() : ex.ToString());
}
//previousEvents.Add(i);