Skip to content

Commit

Permalink
fix: nonnull logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Oganesson897 committed Feb 26, 2025
1 parent 4651a02 commit e741f5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public static List<File> scanningModFiles(Path rootDir) {
return stream
.filter(path -> {
Path parent = path.getParent();
return parent == null && !Arrays.stream(ForgeEarlyConfig.DISABLED_MOD_FOLDER).toList().contains(parent.getFileName().toString());
return parent != null && !Arrays.stream(ForgeEarlyConfig.DISABLED_MOD_FOLDER).toList().contains(parent.getFileName().toString());
})
.filter(java.nio.file.Files::isRegularFile)
.map(Path::toFile)
Expand Down

0 comments on commit e741f5e

Please sign in to comment.