From 850b83ea9d31252a4d211dde35e4c560e156ae0f Mon Sep 17 00:00:00 2001 From: Zaxar163 <35835496+Zaxar163@users.noreply.github.com> Date: Sat, 8 Dec 2018 11:45:53 +0300 Subject: [PATCH] Node fast. --- .../java/ru/gravit/launchserver/manangers/NodeTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java index e5a56bb8..47568683 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/NodeTransformer.java @@ -31,7 +31,7 @@ public NodeTransformer() { public byte[] transform(byte[] input, String classname, JARLauncherBinary data) { ClassReader cr = new ClassReader(input); ClassNode cn = new ClassNode(); - cr.accept(cn, ClassReader.SKIP_DEBUG | ClassReader.SKIP_FRAMES); + cr.accept(cn, ClassReader.SKIP_DEBUG | ClassReader.EXPAND_FRAMES); for (ClassNodeTransformer tr : transLst) tr.transform(cn, classname, data); ClassWriter cw = new SafeClassWriter(data.reader, ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES); cn.accept(cw);