So turns out we can have nice things
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
404796d4b2
commit
fb677a7489
@ -62,7 +62,6 @@ import org.prismlauncher.utils.Parameters;
|
|||||||
import org.prismlauncher.utils.StringUtils;
|
import org.prismlauncher.utils.StringUtils;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public abstract class AbstractLauncher implements Launcher {
|
public abstract class AbstractLauncher implements Launcher {
|
||||||
|
@ -61,8 +61,6 @@ import org.prismlauncher.utils.Parameters;
|
|||||||
import org.prismlauncher.utils.ReflectionUtils;
|
import org.prismlauncher.utils.ReflectionUtils;
|
||||||
|
|
||||||
import java.lang.invoke.MethodHandle;
|
import java.lang.invoke.MethodHandle;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public final class StandardLauncher extends AbstractLauncher {
|
public final class StandardLauncher extends AbstractLauncher {
|
||||||
|
|
||||||
|
@ -60,6 +60,8 @@ package org.prismlauncher.launcher.impl.legacy;
|
|||||||
import net.minecraft.Launcher;
|
import net.minecraft.Launcher;
|
||||||
|
|
||||||
import javax.imageio.ImageIO;
|
import javax.imageio.ImageIO;
|
||||||
|
import javax.swing.JFrame;
|
||||||
|
|
||||||
import java.applet.Applet;
|
import java.applet.Applet;
|
||||||
import java.awt.Dimension;
|
import java.awt.Dimension;
|
||||||
import java.awt.Frame;
|
import java.awt.Frame;
|
||||||
@ -76,7 +78,7 @@ import java.util.List;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
public final class LegacyFrame extends Frame /* TODO consider JFrame */ {
|
public final class LegacyFrame extends JFrame {
|
||||||
|
|
||||||
private static final Logger LOGGER = Logger.getLogger("LegacyFrame");
|
private static final Logger LOGGER = Logger.getLogger("LegacyFrame");
|
||||||
|
|
||||||
|
@ -121,6 +121,8 @@ public final class LegacyLauncher extends AbstractLauncher {
|
|||||||
|
|
||||||
window.start(this.user, this.session, this.width, this.height, this.maximize, this.serverAddress,
|
window.start(this.user, this.session, this.width, this.height, this.maximize, this.serverAddress,
|
||||||
this.serverPort, this.mcParams.contains("--demo"));
|
this.serverPort, this.mcParams.contains("--demo"));
|
||||||
|
|
||||||
|
return;
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
LOGGER.log(Level.SEVERE, "Running applet wrapper failed with exception; falling back to main class", e);
|
LOGGER.log(Level.SEVERE, "Running applet wrapper failed with exception; falling back to main class", e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user