CommandProcessor.ProcessMethodsValidateCommand simplified

This commit is contained in:
vis2k 2019-01-02 20:01:42 +01:00
parent be86ac5096
commit 476af23829

View File

@ -156,16 +156,9 @@ public static bool ProcessMethodsValidateCommand(TypeDefinition td, MethodDefini
return false; return false;
} }
if (!NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Command")) // validate
{ return NetworkBehaviourProcessor.ProcessMethodsValidateFunction(td, md, "Command") &&
return false; NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Command");
}
if (!NetworkBehaviourProcessor.ProcessMethodsValidateParameters(td, md, ca, "Command"))
{
return false;
}
return true;
} }
} }
} }