Fix assemblies not being loaded into correct load context in certain circumstances.

This commit is contained in:
Pieter-Jan Briers
2020-02-21 12:18:53 +01:00
parent eae2a9283d
commit e7d5604889

View File

@@ -118,7 +118,7 @@ namespace Robust.Shared.ContentPack
if (!AssemblyTypeChecker.CheckAssembly(diskPath))
return;
InitMod<T>(Assembly.LoadFrom(diskPath));
InitMod<T>(_loadContext.LoadFromAssemblyPath(diskPath));
}
protected void InitMod<T>(Assembly assembly) where T : GameShared