diff --git a/Assets/Mirror/Weaver/Weaver.cs b/Assets/Mirror/Weaver/Weaver.cs index ab2f54527..de1584aa7 100644 --- a/Assets/Mirror/Weaver/Weaver.cs +++ b/Assets/Mirror/Weaver/Weaver.cs @@ -744,7 +744,7 @@ static void ConfirmGeneratedCodeClass(ModuleDefinition moduleDef) } } - static void ProcessInstructionField(TypeDefinition td, MethodDefinition md, Instruction i, FieldDefinition opField) + static void ProcessInstructionSetterField(TypeDefinition td, MethodDefinition md, Instruction i, FieldDefinition opField) { // dont replace property call sites in constructors or deserialize if (md.Name == ".ctor" || md.Name == "OnDeserialize") @@ -783,7 +783,7 @@ static void ProcessInstruction(ModuleDefinition moduleDef, TypeDefinition td, Me FieldDefinition opField = i.Operand as FieldDefinition; if (opField != null) { - ProcessInstructionField(td, md, i, opField); + ProcessInstructionSetterField(td, md, i, opField); } } }