mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Simplify type check
This commit is contained in:
parent
9077cc7fd7
commit
54f96309da
@ -79,10 +79,10 @@ static void LoadReaders(AssemblyDefinition currentAssembly, TypeDefinition klass
|
|||||||
if (method.Parameters.Count != 1)
|
if (method.Parameters.Count != 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (method.Parameters[0].ParameterType.FullName != "Mirror.NetworkReader")
|
if (!method.Parameters[0].ParameterType.Is<NetworkReader>())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (method.ReturnType.FullName == "System.Void")
|
if (method.ReturnType.Is(typeof(void)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!method.HasCustomAttribute<System.Runtime.CompilerServices.ExtensionAttribute>())
|
if (!method.HasCustomAttribute<System.Runtime.CompilerServices.ExtensionAttribute>())
|
||||||
|
Loading…
Reference in New Issue
Block a user