+ svc fixed

This commit is contained in:
坏黑 2019-04-23 20:47:20 +08:00
parent e9d7eb967f
commit e16b05494d

View File

@ -116,7 +116,7 @@ public class SimpleVersionControl {
ClassReader classReader = new ClassReader(FileUtils.getResource(plugin, target.replace(".", "/") + ".class")); ClassReader classReader = new ClassReader(FileUtils.getResource(plugin, target.replace(".", "/") + ".class"));
ClassWriter classWriter = new ClassWriter(0); ClassWriter classWriter = new ClassWriter(0);
ClassVisitor classVisitor = new SimpleClassVisitor(this, classWriter); ClassVisitor classVisitor = new SimpleClassVisitor(this, classWriter);
classReader.accept(classVisitor, 0); classReader.accept(classVisitor, ClassReader.EXPAND_FRAMES);
classWriter.visitEnd(); classWriter.visitEnd();
classVisitor.visitEnd(); classVisitor.visitEnd();
Class<?> newClass = AsmClassLoader.createNewClass(target, classWriter.toByteArray()); Class<?> newClass = AsmClassLoader.createNewClass(target, classWriter.toByteArray());