mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Weaver CommandProcessor validation moved to NetworkBehaviourProcessor.ProcessCommand
This commit is contained in:
parent
5e7257d7bc
commit
820d0daa29
@ -123,11 +123,5 @@ static void AddSenderConnection(MethodDefinition method, ILProcessor worker)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool ValidateCommand(MethodDefinition md)
|
|
||||||
{
|
|
||||||
// validate
|
|
||||||
return NetworkBehaviourProcessor.ValidateRemoteCallAndParameters(md, RemoteCallType.Command);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1081,7 +1081,7 @@ void ProcessCommand(HashSet<string> names, MethodDefinition md, CustomAttribute
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CommandProcessor.ValidateCommand(md))
|
if (!ValidateRemoteCallAndParameters(md, RemoteCallType.Command))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (names.Contains(md.Name))
|
if (names.Contains(md.Name))
|
||||||
|
Loading…
Reference in New Issue
Block a user