break;
}
}
if (this.allJsonMods.size() != 0 && hasOptional) {
JsonModsChooser modsChooser = new JsonModsChooser(this);
modsChooser.setVisible(true);
if (modsChooser.wasClosed()) {
this.cancel(true);
return false;
}
this.selectedJsonMods = modsChooser.getSelectedMods();
}
if (!hasOptional) {
this.selectedJsonMods = this.allJsonMods;
}
modsInstalled = new ArrayList<DisableableMod>();