diff --git a/Mirror/Weaver/CompilationFinishedHook.cs b/Mirror/Weaver/CompilationFinishedHook.cs index 14a6e13ea..b7c6b9ff6 100644 --- a/Mirror/Weaver/CompilationFinishedHook.cs +++ b/Mirror/Weaver/CompilationFinishedHook.cs @@ -33,9 +33,6 @@ static CompilationFinishedHook() string outputDirectory = Path.GetDirectoryName(assemblyPath); //Debug.Log("outputDirectory=" + outputDirectory); - // unity calls it for Library/ScriptAssemblies/Assembly-CSharp-Editor.dll too, but we don't want to (and can't) weave this one - bool buildingForEditor = assemblyPath.EndsWith("Editor.dll"); - string mirrorRuntimeDll = FindMirrorRuntime(); if (!File.Exists(mirrorRuntimeDll)) @@ -50,6 +47,8 @@ static CompilationFinishedHook() return; } + // unity calls it for Library/ScriptAssemblies/Assembly-CSharp-Editor.dll too, but we don't want to (and can't) weave this one + bool buildingForEditor = assemblyPath.EndsWith("Editor.dll"); if (!buildingForEditor) { Console.WriteLine("Weaving: " + assemblyPath);