this.permgen = this.pack.getPermGen(this.version.getVersion());
this.memory = this.pack.getMemory(this.version.getVersion());
this.caseAllFiles = this.pack.getCaseAllFiles(this.version.getVersion());
selectedMods = new ArrayList<Mod>();
if (allMods.size() != 0 && hasOptionalMods()) {
ModsChooser modsChooser = new ModsChooser(this);
modsChooser.setVisible(true);
if (modsChooser.wasClosed()) {
this.cancel(true);
return false;
}
selectedMods = modsChooser.getSelectedMods();
}
if (!hasOptionalMods()) {
selectedMods = allMods;
}
modsInstalled = new ArrayList<DisableableMod>();