diff --git a/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs b/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs index 84310ad98..5d804acbb 100644 --- a/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs +++ b/Assets/Mirror/Editor/Weaver/Processors/RpcProcessor.cs @@ -80,9 +80,6 @@ public static MethodDefinition ProcessRpcCall(WeaverTypes weaverTypes, Writers w // invoke SendInternal and return // this worker.Emit(OpCodes.Ldarg_0); - worker.Emit(OpCodes.Ldtoken, td); - // invokerClass - worker.Emit(OpCodes.Call, weaverTypes.getTypeFromHandleReference); // pass full function name to avoid ClassA.Func <-> ClassB.Func collisions worker.Emit(OpCodes.Ldstr, md.FullName); // writer diff --git a/Assets/Mirror/Runtime/NetworkBehaviour.cs b/Assets/Mirror/Runtime/NetworkBehaviour.cs index 3911f7608..3e33d9115 100644 --- a/Assets/Mirror/Runtime/NetworkBehaviour.cs +++ b/Assets/Mirror/Runtime/NetworkBehaviour.cs @@ -248,7 +248,7 @@ protected void SendCommandInternal(string functionFullName, NetworkWriter writer } // pass full function name to avoid ClassA.Func <-> ClassB.Func collisions - protected void SendRPCInternal(Type invokeClass, string functionFullName, NetworkWriter writer, int channelId, bool includeOwner) + protected void SendRPCInternal(string functionFullName, NetworkWriter writer, int channelId, bool includeOwner) { // this was in Weaver before if (!NetworkServer.active)