mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 17:19:47 +03:00
[FIX] AutogenConfig VerifyError(#326)
This commit is contained in:
parent
50433d0b9d
commit
eb9762ce5b
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,8 @@ public JAConfigurator(ClassNode configclass) {
|
||||||
this.configclass = configclass;
|
this.configclass = configclass;
|
||||||
constructor = configclass.methods.stream().filter(e -> "<init>".equals(e.name)).findFirst().get();
|
constructor = configclass.methods.stream().filter(e -> "<init>".equals(e.name)).findFirst().get();
|
||||||
constructor.instructions = new InsnList();
|
constructor.instructions = new InsnList();
|
||||||
|
constructor.instructions.add(new VarInsnNode(Opcodes.ALOAD, 0));
|
||||||
|
constructor.instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, Type.getInternalName(Object.class), "<init>", "()V"));
|
||||||
initModuleMethod = configclass.methods.stream().filter(e -> "initModules".equals(e.name)).findFirst().get();
|
initModuleMethod = configclass.methods.stream().filter(e -> "initModules".equals(e.name)).findFirst().get();
|
||||||
initModuleMethod.instructions = new InsnList();
|
initModuleMethod.instructions = new InsnList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue