From f25c2f3f1558580bb406f3cab12ae73ab2b773e9 Mon Sep 17 00:00:00 2001 From: friendlyhj Date: Fri, 8 Nov 2024 21:52:33 +0800 Subject: [PATCH] skip code in scan annotations --- .../minecraftforge/fml/common/discovery/asm/ASMModParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fml/common/discovery/asm/ASMModParser.java b/src/main/java/net/minecraftforge/fml/common/discovery/asm/ASMModParser.java index af6c9149f..ddf0736b4 100644 --- a/src/main/java/net/minecraftforge/fml/common/discovery/asm/ASMModParser.java +++ b/src/main/java/net/minecraftforge/fml/common/discovery/asm/ASMModParser.java @@ -55,7 +55,7 @@ public ASMModParser(InputStream stream) throws IOException try { ClassReader reader = new ClassReader(stream); - reader.accept(new ModClassVisitor(this), 0); + reader.accept(new ModClassVisitor(this), ClassReader.SKIP_CODE); } catch (Exception ex) {