Skip to content

Commit 795cb8b

Browse files
committed
look for netcode patched attribute on the main module
1 parent 19c7f96 commit 795cb8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NetcodePatcher/CodeGen/NetcodeILPPApplicator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static bool HasNetcodePatchedAttribute(ICompiledAssembly assembly)
3636
var assemblyDefinition = CodeGenHelpers.AssemblyDefinitionFor(assembly, out _);
3737
if (assemblyDefinition is null) return false;
3838

39-
return assemblyDefinition.CustomAttributes.Any(
39+
return assemblyDefinition.MainModule.CustomAttributes.Any(
4040
attribute => attribute.Constructor.DeclaringType.FullName.EndsWith(
4141
$".{ApplyPatchedAttributeILPP.AttributeNamespaceSuffix}.{ApplyPatchedAttributeILPP.AttributeName}")
4242
);

0 commit comments

Comments
 (0)