Skip to content

Commit 2e03623

Browse files
committed
Avoid recomputing frames when getting class as resource
1 parent 0d40170 commit 2e03623

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/mcphackers/launchwrapper/loader/ClassLoaderURLHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public InputStream getInputStream() throws IOException {
4242
InputStream is = classLoader.getOriginalURL(path).openStream();
4343
return is;
4444
}
45-
ClassWriter writer = new SafeClassWriter(classLoader, COMPUTE_MAXS | COMPUTE_FRAMES);
45+
ClassWriter writer = new SafeClassWriter(classLoader, COMPUTE_MAXS);
4646
node.accept(writer);
4747
data = writer.toByteArray();
4848
return new ByteArrayInputStream(data);

0 commit comments

Comments
 (0)