Skip to content

Commit 57a2ba9

Browse files
committed
set attribute target to assembly
1 parent 6bad06f commit 57a2ba9

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)