mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-17 16:34:31 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
580408b92a | ||
|
dbdd1fb9f3 |
@@ -442,6 +442,9 @@ public class UpdateManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Shut down the thread pool when the update is done
|
||||||
|
threadPool.shutdown();
|
||||||
|
|
||||||
List<IExceptionDetails> failedTasks2ElectricBoogaloo = nonFailedFirstTasks.stream().filter(t -> t.getException() != null).collect(Collectors.toList());
|
List<IExceptionDetails> failedTasks2ElectricBoogaloo = nonFailedFirstTasks.stream().filter(t -> t.getException() != null).collect(Collectors.toList());
|
||||||
if (!failedTasks2ElectricBoogaloo.isEmpty()) {
|
if (!failedTasks2ElectricBoogaloo.isEmpty()) {
|
||||||
errorsOccurred = true;
|
errorsOccurred = true;
|
||||||
|
@@ -35,8 +35,14 @@ public class CLIHandler implements IUserInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Future<Boolean> showOptions(List<IOptionDetails> option) {
|
public Future<Boolean> showOptions(List<IOptionDetails> options) {
|
||||||
throw new RuntimeException("Optional mods not implemented for CLI! Make sure your optional mods are only on the client side!");
|
for (IOptionDetails opt : options) {
|
||||||
|
opt.setOptionValue(true);
|
||||||
|
System.out.println("Warning: accepting option " + opt.getName() + " as option choosing is not implemented in the CLI");
|
||||||
|
}
|
||||||
|
CompletableFuture<Boolean> future = new CompletableFuture<>();
|
||||||
|
future.complete(false); // Can't be cancelled!
|
||||||
|
return future;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user