This commit is contained in:
vis2k 2022-01-18 15:45:52 +08:00
parent 94c319746b
commit effad42399

View File

@ -108,7 +108,8 @@ static bool GetInvokerForHash(int cmdHash, RemoteCallType remoteCallType, out In
// InvokeCmd/Rpc Delegate can all use the same function here
internal static bool InvokeHandlerDelegate(int cmdHash, RemoteCallType remoteCallType, NetworkReader reader, NetworkBehaviour invokingType, NetworkConnectionToClient senderConnection = null)
{
if (GetInvokerForHash(cmdHash, remoteCallType, out Invoker invoker) && invoker.invokeClass.IsInstanceOfType(invokingType))
if (GetInvokerForHash(cmdHash, remoteCallType, out Invoker invoker) &&
invoker.invokeClass.IsInstanceOfType(invokingType))
{
invoker.invokeFunction(invokingType, reader, senderConnection);
return true;