public PlayOfflineDialog(String cause, final String username, final String uuid) {
        super(LaunchFrame.getInstance(), true);
        setupGui();

        play.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed (ActionEvent arg0) {
                ModPack pack = ModPack.getSelectedPack();
                boolean legacy = false;
                if (!pack.getMcVersion().startsWith("14w") && Integer.parseInt(pack.getMcVersion().replaceAll("[^\\d]", "")) < 162)
                    legacy = true;
                if(pack.getDir().equalsIgnoreCase("mojang_vanilla"))
                    legacy=false;//vanilla goes direct!!
                setVisible(false);
                String unique;
                if (uuid == null || uuid.isEmpty())
                    unique = "1234567890";
                else
                    unique = uuid;
                MCInstaller.launchMinecraft(Settings.getSettings().getInstallPath(), ModPack.getSelectedPack(), username, legacy);

            }
        });

        abort.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed (ActionEvent e) {
                setVisible(false);
            }
        });
    }