We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19c7f96 commit 795cb8bCopy full SHA for 795cb8b
NetcodePatcher/CodeGen/NetcodeILPPApplicator.cs
@@ -36,7 +36,7 @@ public static bool HasNetcodePatchedAttribute(ICompiledAssembly assembly)
36
var assemblyDefinition = CodeGenHelpers.AssemblyDefinitionFor(assembly, out _);
37
if (assemblyDefinition is null) return false;
38
39
- return assemblyDefinition.CustomAttributes.Any(
+ return assemblyDefinition.MainModule.CustomAttributes.Any(
40
attribute => attribute.Constructor.DeclaringType.FullName.EndsWith(
41
$".{ApplyPatchedAttributeILPP.AttributeNamespaceSuffix}.{ApplyPatchedAttributeILPP.AttributeName}")
42
);
0 commit comments