Skip to content

Commit 538732e

Browse files
committed
removed old API
1 parent a9d70f1 commit 538732e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,7 @@ internal FastBufferWriter __beginSendRpc(uint rpcMethodId, RpcParams rpcParams,
335335
throw new RpcException("This RPC can only be sent by the server.");
336336
}
337337

338-
#pragma warning disable CS0618 // Type or member is obsolete
339-
var requireOwnership = attributeParams.RequireOwnership;
340-
#pragma warning restore CS0618 // Type or member is obsolete
341-
342-
if ((requireOwnership || attributeParams.InvokePermission == RpcInvokePermission.Owner) && !IsOwner)
338+
if (attributeParams.InvokePermission == RpcInvokePermission.Owner && !IsOwner)
343339
{
344340
throw new RpcException("This RPC can only be sent by its owner.");
345341
}

0 commit comments

Comments
 (0)