From 76ce3796eb0a299c687928f13c00ab2538dcda7b Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Mon, 21 Sep 2020 16:58:08 -0500 Subject: [PATCH] Simplify attribute namespace --- .../Weaver/Processors/ServerClientAttributeProcessor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Mirror/Editor/Weaver/Processors/ServerClientAttributeProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/ServerClientAttributeProcessor.cs index f13131310..2452f9b62 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/ServerClientAttributeProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/ServerClientAttributeProcessor.cs @@ -64,13 +64,13 @@ public static bool HasServerClientAttribute(MethodDefinition md) public static bool ProcessMethodAttributes(TypeDefinition td, MethodDefinition md) { - if (md.HasCustomAttribute()) + if (md.HasCustomAttribute()) InjectServerGuard(md, true); - else if (md.HasCustomAttribute()) + else if (md.HasCustomAttribute()) InjectServerGuard(md, false); - else if (md.HasCustomAttribute()) + else if (md.HasCustomAttribute()) InjectClientGuard(md, true); - else if (md.HasCustomAttribute()) + else if (md.HasCustomAttribute()) InjectClientGuard(md, false); else return false;