mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[FIX] Забытый RETURN.
This commit is contained in:
parent
ac55d0694b
commit
386a110eb1
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue