Upd modules + node transformer fix.

This commit is contained in:
zaxar163 2019-01-02 17:29:27 +04:00 committed by Gravit
parent 2ee43370b2
commit 4538749192

View file

@ -33,7 +33,7 @@ public byte[] transform(byte[] input, String classname, JARLauncherBinary data)
ClassNode cn = new ClassNode();
cr.accept(cn, ClassReader.SKIP_DEBUG);
for (ClassNodeTransformer tr : transLst) tr.transform(cn, classname, data);
ClassWriter cw = new SafeClassWriter(data.reader, ClassWriter.COMPUTE_MAXS);
ClassWriter cw = new SafeClassWriter(data.reader, ClassWriter.COMPUTE_FRAMES);
cn.accept(cw);
return cw.toByteArray();
}