diff --git a/src/main/java/net/minecraftforge/fml/common/asm/transformers/AccessTransformer.java b/src/main/java/net/minecraftforge/fml/common/asm/transformers/AccessTransformer.java index 30cc76fe0..508818597 100644 --- a/src/main/java/net/minecraftforge/fml/common/asm/transformers/AccessTransformer.java +++ b/src/main/java/net/minecraftforge/fml/common/asm/transformers/AccessTransformer.java @@ -193,7 +193,7 @@ public byte[] transform(String name, String transformedName, byte[] bytes) ClassNode classNode = new ClassNode(); ClassReader classReader = new ClassReader(bytes); - classReader.accept(classNode, 0); + classReader.accept(classNode, ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES); Collection mods = modifiers.get(transformedName); for (Modifier m : mods) 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 ddf0736b4..4857400d2 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), ClassReader.SKIP_CODE); + reader.accept(new ModClassVisitor(this), ClassReader.SKIP_CODE | ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES); } catch (Exception ex) {