Unstable 1.2.4.0

This commit is contained in:
Markus Isberg
2023-11-30 13:53:00 +02:00
parent 8a2e2ea0ae
commit fb5ea537bf
210 changed files with 4201 additions and 1283 deletions
@@ -45,7 +45,14 @@ namespace Barotrauma
}
else
{
data.Add(identifier, Convert.ChangeType(value, type, NumberFormatInfo.InvariantInfo));
try
{
data.Add(identifier, Convert.ChangeType(value, type, NumberFormatInfo.InvariantInfo));
}
catch (Exception e)
{
DebugConsole.ThrowError($"Failed to change the type of the value \"{value}\" to {type}.", e);
}
}
}
}