From 71d19aaff3c362af2d9428f3840c666f939db5c3 Mon Sep 17 00:00:00 2001 From: vis2k Date: Mon, 23 Aug 2021 19:28:13 +0800 Subject: [PATCH] forgot to save --- .../Weaver/EntryPointILPostProcessor/ILPostProcessorHook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorHook.cs b/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorHook.cs index d67900877..963cbfee7 100644 --- a/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorHook.cs +++ b/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorHook.cs @@ -79,7 +79,7 @@ public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly) // NullReferenceException in WeaverTypes.ctor // when Resolve() is called on the first Mirror type. // need to add the AssemblyDefinition itself to use. - asmResolver.AddAssemblyDefinitionForCompiledAssembly(asmDef); + asmResolver.SetAssemblyDefinitionForCompiledAssembly(asmDef); // weave this assembly. Weaver weaver = new Weaver(Log);