Skip to content

Commit a1bdf1e

Browse files
committed
Compute maxs instead of frames for dumpClassToBytes
Fix for when classes are missing
1 parent f9bbf13 commit a1bdf1e

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/club/bytecode/the/jda

1 file changed

+1
-1
lines changed

src/main/java/club/bytecode/the/jda/JDA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public static byte[] getClassFileBytes(FileContainer container, String className
234234

235235
public static byte[] dumpClassToBytes(ClassNode cn) {
236236
// we have to do this, or else decompile filters don't work.
237-
ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_FRAMES);
237+
ClassWriter writer = new ClassWriter(ClassWriter.COMPUTE_MAXS);
238238
cn.accept(writer);
239239
return writer.toByteArray();
240240
}

0 commit comments

Comments
 (0)