From 386a110eb1bfdeb270ba5a0718f293b42820861a Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Fri, 18 Oct 2019 17:11:08 +0200 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=97=D0=B0=D0=B1=D1=8B=D1=82=D1=8B?= =?UTF-8?q?=D0=B9=20RETURN.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gravit/launchserver/binary/LauncherConfigurator.java | 7 +++++++ 1 file changed, 7 insertions(+) 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) {