Skip to content

Commit bcfdbc6

Browse files
committed
Remove color spacing for update result
1 parent 2ce8697 commit bcfdbc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/hydev/mcpm/client/commands/presenters/LogUpdatePresenter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ public void present(UpdateInput input, UpdateResult result) {
7878
var outcomes = result.outcomes();
7979

8080
// If we are updating all plugins, only show users plugins that were upgraded.
81-
if (!input.updateAll()) {
81+
if (input.updateAll()) {
8282
outcomes = outcomes.entrySet().stream()
8383
.filter(x -> x.getValue().state() != UpdateOutcome.State.UP_TO_DATE)
8484
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
8585
}
8686

8787
if (outcomes.isEmpty()) {
88-
log.accept("&2 All plugins are up to date.");
88+
log.accept("&2All plugins are up to date.");
8989
} else {
9090
var updated = outcomes.values().stream()
9191
.filter(x -> x.state() == UpdateOutcome.State.UPDATED)
@@ -97,7 +97,7 @@ public void present(UpdateInput input, UpdateResult result) {
9797

9898
if (failed > 0) {
9999
log.accept("&cFailed to update " + failed + " plugins (" + updated + " plugins updated).");
100-
} if (updated > 0) {
100+
} else if (updated > 0) {
101101
log.accept("&2Updated " + updated + " plugins successfully.");
102102
} else {
103103
log.accept("&2All plugins are up to date.");

0 commit comments

Comments
 (0)