[FIX] Забытый RETURN.

This commit is contained in:
Zaxar163 2019-10-18 17:11:08 +02:00
parent ac55d0694b
commit 386a110eb1
No known key found for this signature in database
GPG key ID: 1FE4F2E1F053831B

View file

@ -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) {