mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Writers: remove Weaver.CurrentAssembly reference
This commit is contained in:
parent
5098868c2a
commit
df716572f5
@ -280,7 +280,7 @@ MethodDefinition GenerateCollectionWriter(TypeReference variable, TypeReference
|
||||
|
||||
ModuleDefinition module = assembly.MainModule;
|
||||
TypeReference readerExtensions = module.ImportReference(typeof(NetworkWriterExtensions));
|
||||
MethodReference collectionWriter = Resolvers.ResolveMethod(readerExtensions, Weaver.CurrentAssembly, writerFunction);
|
||||
MethodReference collectionWriter = Resolvers.ResolveMethod(readerExtensions, assembly, writerFunction);
|
||||
|
||||
GenericInstanceMethod methodRef = new GenericInstanceMethod(collectionWriter);
|
||||
methodRef.GenericArguments.Add(elementType);
|
||||
|
Loading…
Reference in New Issue
Block a user