mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
remove old code
This commit is contained in:
parent
45438b5e91
commit
3792e23f2f
@ -1199,16 +1199,6 @@ void ProcessCommand(HashSet<string> names, MethodDefinition md, CustomAttribute
|
||||
if (!ValidateRemoteCallAndParameters(md, RemoteCallType.Command, ref WeavingFailed))
|
||||
return;
|
||||
|
||||
// multiple commands of same name with different parameteres are now
|
||||
// supported because we register them with md.FullName like:
|
||||
// "System.Void Mirror.Tests.RemoteAttrributeTest.AuthorityBehaviour::SendInt(System.Int32)"
|
||||
//if (names.Contains(md.Name))
|
||||
//{
|
||||
// Log.Error($"Duplicate Command name {md.Name}", md);
|
||||
// WeavingFailed = true;
|
||||
// return;
|
||||
//}
|
||||
|
||||
bool requiresAuthority = commandAttr.GetField("requiresAuthority", true);
|
||||
|
||||
names.Add(md.Name);
|
||||
|
Loading…
Reference in New Issue
Block a user