Fix module dependencies not loading with module assembly

This commit is contained in:
Noi 2022-08-08 20:36:39 -07:00
parent ffded1b45c
commit cf5db191dc

View file

@ -17,7 +17,7 @@ static class ModuleLoader {
foreach (var file in conf.Assemblies) {
Assembly? a = null;
try {
a = Assembly.LoadFile(path + file);
a = Assembly.LoadFrom(path + file);
} catch (Exception ex) {
Console.WriteLine("An error occurred when attempting to load a module assembly.");
Console.WriteLine($"File: {file}");