From eff4736f716ee41cf8a28c51c9e053ef3354728b Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 21 Aug 2021 13:33:18 +0800 Subject: [PATCH] syntax --- Assets/Mirror/Editor/Weaver/Weaver.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Editor/Weaver/Weaver.cs b/Assets/Mirror/Editor/Weaver/Weaver.cs index 114c841a2..65334462f 100644 --- a/Assets/Mirror/Editor/Weaver/Weaver.cs +++ b/Assets/Mirror/Editor/Weaver/Weaver.cs @@ -84,8 +84,8 @@ bool WeaveModule(ModuleDefinition moduleDefinition) bool modified = false; Stopwatch watch = Stopwatch.StartNew(); - watch.Start(); + foreach (TypeDefinition td in moduleDefinition.Types) { if (td.IsClass && td.BaseType.CanBeResolved()) @@ -94,6 +94,7 @@ bool WeaveModule(ModuleDefinition moduleDefinition) modified |= ServerClientAttributeProcessor.Process(weaverTypes, Log, td, ref WeavingFailed); } } + watch.Stop(); Console.WriteLine("Weave behaviours and messages took " + watch.ElapsedMilliseconds + " milliseconds");