From 7d73e6ad5d9e1b5ca5289b07758fb8ed19570f41 Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 2 Jan 2019 17:14:04 +0100 Subject: [PATCH] Weaver.ProcessSiteMethod: simplify syntax --- Mirror/Weaver/Weaver.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Mirror/Weaver/Weaver.cs b/Mirror/Weaver/Weaver.cs index 5caac2f96..ef7d3814a 100644 --- a/Mirror/Weaver/Weaver.cs +++ b/Mirror/Weaver/Weaver.cs @@ -896,10 +896,9 @@ static void ProcessSiteMethod(ModuleDefinition moduleDef, TypeDefinition td, Met // process all references to replaced members with properties //Weaver.DLog(td, " ProcessSiteMethod " + md); - if (md.Name == ".cctor" || md.Name == "OnUnserializeVars") - return; - - if (md.Name.StartsWith("UNet") || + if (md.Name == ".cctor" || + md.Name == "OnUnserializeVars" || + md.Name.StartsWith("UNet") || md.Name.StartsWith("CallCmd") || md.Name.StartsWith("InvokeCmd") || md.Name.StartsWith("InvokeRpc") ||