Fix externally referenced DLLs in scripts

External DLL references weren't being used, this commit fixes them so they are used.
This commit is contained in:
breadbyte 2022-10-21 00:29:46 +08:00
parent 78f9c35800
commit e006943535
No known key found for this signature in database
GPG key ID: 81897669486FFAFC
3 changed files with 60 additions and 9 deletions

View file

@ -105,7 +105,7 @@ namespace MinecraftClient
ConsoleIO.WriteLogLine($"[Script] Starting compilation for {scriptName}...");
//Compile the C# class in memory using all the currently loaded assemblies
var result = compiler.Compile(code, Guid.NewGuid().ToString());
var result = compiler.Compile(code, Guid.NewGuid().ToString(), dlls);
//Process compile warnings and errors
if (result.Failures != null) {