So turns out we can have nice things
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -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 {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user