From b11160f982e4bfb28837735662fcbdfa4941b26d Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Wed, 28 Aug 2019 09:29:32 +0300 Subject: [PATCH] [FIX] JAConfigurator 2. --- .../main/java/pro/gravit/launchserver/binary/JAConfigurator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/JAConfigurator.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/JAConfigurator.java index 45f3c8d7..f54359d2 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/JAConfigurator.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/JAConfigurator.java @@ -48,6 +48,7 @@ public JAConfigurator(ClassNode configclass) { public void addModuleClass(String fullName) { initModuleMethod.instructions.add(new FieldInsnNode(Opcodes.GETSTATIC, launcherName, "modulesManager", modulesManagerDesc)); initModuleMethod.instructions.add(new TypeInsnNode(Opcodes.NEW, fullName.replace('.', '/'))); + initModuleMethod.instructions.add(new InsnNode(Opcodes.DUP)); initModuleMethod.instructions.add(new MethodInsnNode(Opcodes.INVOKESPECIAL, fullName.replace('.', '/'), "", "()V")); initModuleMethod.instructions.add(new MethodInsnNode(Opcodes.INVOKEINTERFACE, modulesManagerName, "loadModule", registerModDesc)); }