diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/LauncherConfigurator.java b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/LauncherConfigurator.java index 5ab1a00d..bde39553 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/binary/LauncherConfigurator.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/binary/LauncherConfigurator.java @@ -12,6 +12,7 @@ import pro.gravit.launcher.LauncherConfig; import pro.gravit.launcher.modules.LauncherModule; +import pro.gravit.launchserver.asm.ClassMetadataReader; import pro.gravit.launchserver.asm.ConfigGenerator; public class LauncherConfigurator extends ConfigGenerator { @@ -35,6 +36,12 @@ public void addModuleClass(String fullName) { initModuleMethod.instructions.add(new MethodInsnNode(Opcodes.INVOKEINTERFACE, modulesManagerName, "loadModule", registerModDesc)); } + @Override + public byte[] getBytecode(ClassMetadataReader reader) { + initModuleMethod.instructions.add(new InsnNode(Opcodes.RETURN)); + return super.getBytecode(reader); + } + public void setEnv(LauncherConfig.LauncherEnvironment env) { int i = 2; switch (env) {