Hotfix v0.18.12.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#nullable enable
|
||||
using System;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
|
||||
@@ -18,7 +19,14 @@ namespace Barotrauma
|
||||
public override void RetrieveValue()
|
||||
{
|
||||
//TODO: possibly broken!
|
||||
cachedValue = string.Format(str.Value, subStrs.Select(s => s.Value as object).ToArray());
|
||||
try
|
||||
{
|
||||
cachedValue = string.Format(str.Value, subStrs.Select(s => s.Value as object).ToArray());
|
||||
}
|
||||
catch (FormatException)
|
||||
{
|
||||
cachedValue = str.Value;
|
||||
}
|
||||
UpdateLanguage();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user