So turns out we can have nice things

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2022-11-03 17:45:37 +00:00
parent 404796d4b2
commit fb677a7489
4 changed files with 5 additions and 4 deletions

View File

@ -62,7 +62,6 @@ import org.prismlauncher.utils.Parameters;
import org.prismlauncher.utils.StringUtils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public abstract class AbstractLauncher implements Launcher {

View File

@ -61,8 +61,6 @@ import org.prismlauncher.utils.Parameters;
import org.prismlauncher.utils.ReflectionUtils;
import java.lang.invoke.MethodHandle;
import java.util.ArrayList;
import java.util.List;
public final class StandardLauncher extends AbstractLauncher {

View File

@ -60,6 +60,8 @@ package org.prismlauncher.launcher.impl.legacy;
import net.minecraft.Launcher;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import java.applet.Applet;
import java.awt.Dimension;
import java.awt.Frame;
@ -76,7 +78,7 @@ import java.util.List;
import java.util.logging.Level;
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");

View File

@ -121,6 +121,8 @@ public final class LegacyLauncher extends AbstractLauncher {
window.start(this.user, this.session, this.width, this.height, this.maximize, this.serverAddress,
this.serverPort, this.mcParams.contains("--demo"));
return;
} catch (Throwable e) {
LOGGER.log(Level.SEVERE, "Running applet wrapper failed with exception; falling back to main class", e);
}