fix for non-local mods folder regex and mod assembly type not found

This commit is contained in:
Oiltanker
2022-05-02 15:23:57 +03:00
parent 8acbb0dcd1
commit fb079bf443
2 changed files with 2 additions and 1 deletions
@@ -432,6 +432,7 @@ namespace Barotrauma
foreach (var elem in typesElem.Elements())
{
var type = Type.GetType(elem.Value);
if (type == null && GameMain.LuaCs?.CsScriptLoader?.Assembly != null) type = GameMain.LuaCs.CsScriptLoader.Assembly.GetType(elem.Value);
if (type == null) throw new Exception($"Type {elem.Value} not found.");
result.Add(type);