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;