1.0 Merge fixes

This commit is contained in:
EvilFactory
2023-03-13 13:37:24 -03:00
parent 4a229c6427
commit 5a3f9ebc80
2 changed files with 0 additions and 24 deletions
@@ -110,14 +110,5 @@ namespace Barotrauma
result += $"<{string.Join(", ", t.GetGenericArguments().Select(NameWithGenerics))}>";
return result;
}
public static string NameWithGenerics(this Type t)
{
if (!t.IsGenericType) { return t.Name; }
string result = t.Name[..t.Name.IndexOf('`')];
result += $"<{string.Join(", ", t.GetGenericArguments().Select(NameWithGenerics))}>";
return result;
}
}
}