diff --git a/Assets/Mirror/Editor/Weaver/Readers.cs b/Assets/Mirror/Editor/Weaver/Readers.cs index 1943104b7..2553d8a79 100644 --- a/Assets/Mirror/Editor/Weaver/Readers.cs +++ b/Assets/Mirror/Editor/Weaver/Readers.cs @@ -228,7 +228,7 @@ MethodDefinition GenerateReadCollection(TypeReference variable, TypeReference el ModuleDefinition module = assembly.MainModule; TypeReference readerExtensions = module.ImportReference(typeof(NetworkReaderExtensions)); - MethodReference listReader = Resolvers.ResolveMethod(readerExtensions, Weaver.CurrentAssembly, readerFunction); + MethodReference listReader = Resolvers.ResolveMethod(readerExtensions, assembly, readerFunction); GenericInstanceMethod methodRef = new GenericInstanceMethod(listReader); methodRef.GenericArguments.Add(elementType);