Do not show OpenEye offer gui if there's no OpenEye for the current MC version

This commit is contained in:
Jonas Herzig
2017-06-15 16:28:44 +02:00
parent bef5e41a8d
commit 4dcecc5697
2 changed files with 24 additions and 1 deletions

View File

@@ -10,6 +10,10 @@ import java.nio.file.NoSuchFileException;
public class DownloadOpenEye extends AbstractTask {
@Override
protected void init() {
if ("1".equals(System.getenv("RM_INTEGRATION_TEST_NO_OPENEYE"))) {
runLater(() -> future.set(null));
return;
}
expectGui(OpenEyeExtra.OfferGui.class, offerGui -> {
click(offerGui.yesButton);
expectGuiClosed(20 * 1000, () -> {