From 6c32dd561dce56c6c41ab798d5bb512159914e10 Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 16 Jan 2019 15:07:02 +0100 Subject: [PATCH] Syntax --- Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs b/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs index 5b802d0f1..445053127 100644 --- a/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs +++ b/Assets/Mirror/Weaver/Processors/NetworkBehaviourProcessor.cs @@ -461,9 +461,8 @@ void GenerateDeSerialization() return; } - MethodDefinition serialize = new MethodDefinition("OnDeserialize", MethodAttributes.Public | - MethodAttributes.Virtual | - MethodAttributes.HideBySig, + MethodDefinition serialize = new MethodDefinition("OnDeserialize", + MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.HideBySig, Weaver.voidType); serialize.Parameters.Add(new ParameterDefinition("reader", ParameterAttributes.None, Weaver.scriptDef.MainModule.ImportReference(Weaver.NetworkReaderType)));