mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Fix assemblies not being loaded into correct load context in certain circumstances.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user