Skip to content

Commit 08b21f2

Browse files
Merge pull request #21 from Lordfirespeed/main
set NetcodePatchedAttribute attribute target to 'assembly', not 'class'
2 parents aa54ad8 + 57a2ba9 commit 08b21f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetcodePatcher/CodeGen/ApplyPatchedAttributeILPP.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public override bool WillProcess(ICompiledAssembly compiledAssembly)
6262
)
6363
);
6464
attr_AttributeUsage.ConstructorArguments.Add(
65-
new CustomAttributeArgument(assemblyDefinition.MainModule.ImportReference(typeof(AttributeTargets)), 4)
65+
new CustomAttributeArgument(assemblyDefinition.MainModule.ImportReference(typeof(AttributeTargets)), 1)
6666
);
6767
cls_NetcodePatchedAttribute.CustomAttributes.Add(attr_AttributeUsage);
6868

0 commit comments

Comments
 (0)