From 8b40a0c9db6506a0f8f3406b252dbfe926927cd3 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 1 Jan 2019 16:20:31 +0100 Subject: [PATCH] NetworkBehaviourProcessor: changed processed string from confusing UNetVersion to MirrorProcessed --- Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs b/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs index eed9d4b07..efcd7477d 100644 --- a/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs +++ b/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs @@ -144,17 +144,17 @@ public static bool WriteArguments(ILProcessor worker, MethodDefinition md, strin } // mark / check type as processed ////////////////////////////////////// - // by adding an empty UNetVersion() function + // by adding an empty MirrorProcessed() function public static bool WasProcessed(TypeDefinition td) { - return td.Methods.Any(method => method.Name == "UNetVersion"); + return td.Methods.Any(method => method.Name == "MirrorProcessed"); } public static void MarkAsProcessed(TypeDefinition td) { if (!WasProcessed(td)) { - MethodDefinition versionMethod = new MethodDefinition("UNetVersion", MethodAttributes.Private, Weaver.voidType); + MethodDefinition versionMethod = new MethodDefinition("MirrorProcessed", MethodAttributes.Private, Weaver.voidType); ILProcessor worker = versionMethod.Body.GetILProcessor(); worker.Append(worker.Create(OpCodes.Ret)); td.Methods.Add(versionMethod);