fix(multiplayer): does not download cato if not found.

This commit is contained in:
huanghongxun 2021-10-07 19:00:27 +08:00
parent 775b58d0fd
commit 2b04292424

View File

@ -160,12 +160,14 @@ public class MultiplayerPage extends DecoratorAnimatedPage implements DecoratorP
});
agreementPane.setActions(agreementLink, yesButton, noButton);
Controllers.dialog(agreementPane);
} else {
runnable.run();
}
}
private void downloadCatoIfNecessary() {
if (StringUtils.isBlank(MultiplayerManager.getCatoPath())) {
Controllers.dialog(i18n("multiplayer.download.failed"), i18n("install.failed.downloading"), MessageDialogPane.MessageType.ERROR);
Controllers.dialog(i18n("multiplayer.download.unsupported"), i18n("install.failed.downloading"), MessageDialogPane.MessageType.ERROR);
fireEvent(new PageCloseEvent());
return;
}