should get the last assembly

This commit is contained in:
zhurengong
2022-04-19 18:51:53 +08:00
parent 6e0eae141b
commit 1b0c865459

View File

@@ -13,7 +13,7 @@ namespace Barotrauma
{
var type = Type.GetType(typeName);
if (type != null) return type;
foreach (var a in AppDomain.CurrentDomain.GetAssemblies())
foreach (var a in AppDomain.CurrentDomain.GetAssemblies().Reverse())
{
type = a.GetType(typeName);
if (type != null)