Skip to content

Commit a468354

Browse files
committed
Ignore mcpm imports
1 parent 5e32936 commit a468354

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/hydev/mcpm/client/export/ImportResult.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public ImportResult(List<InstallResult> installResults) {
3131
// Code for when import returns ImportResult instead of boolean
3232
Set<InstallResult.Type> good = Set.of(InstallResult.Type.SUCCESS_INSTALLED, InstallResult.Type.PLUGIN_EXISTS);
3333
for (var result : installResults) {
34+
if (result.name().equalsIgnoreCase("mcpm") ||
35+
result.name().equalsIgnoreCase("mcpm-helper")) // ignore mcpm imports
36+
continue;
37+
3438
boolean successfulInstall = good.contains(result.type());
3539
allSuccessful &= successfulInstall;
3640
allFailed &= !successfulInstall;

0 commit comments

Comments
 (0)