Skip to content

Commit 3abebfe

Browse files
committed
Fix errors
1 parent f0e45bf commit 3abebfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TerrariaServerAPI/TerrariaApi.Server/ServerApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ internal static void LoadPlugins()
350350
try
351351
{
352352
var pdbPath = Path.ChangeExtension(fileInfo.FullName, ".pdb");
353-
assembly = Assembly.Load(pe = File.ReadAllBytes(fileInfo.FullName), File.Exists(pdb) ? File.ReadAllBytes(pdbPath) : null);
353+
assembly = Assembly.Load(pe = File.ReadAllBytes(fileInfo.FullName), File.Exists(pdbPath) ? File.ReadAllBytes(pdbPath) : null);
354354
}
355355
catch (BadImageFormatException)
356356
{
@@ -518,7 +518,7 @@ private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEven
518518
Assembly assembly;
519519
if (!loadedAssemblies.TryGetValue(fileName, out assembly))
520520
{
521-
var pdbPath = Path.ChangeExtension(fileInfo.FullName, ".pdb");
521+
var pdbPath = Path.ChangeExtension(fileName, ".pdb");
522522
assembly = Assembly.Load(File.ReadAllBytes(path), File.Exists(pdbPath) ? File.ReadAllBytes(pdbPath) : null);
523523
// We just do this to return a proper error message incase this is a resolved plugin assembly
524524
// referencing an old TerrariaServer version.

0 commit comments

Comments
 (0)