Skip to content

Commit

Permalink
Only find service files in the base META-INF/services/ folder. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeregorix authored Jul 22, 2024
1 parent 6b587e4 commit e7f217d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cpw/mods/jarhandling/impl/Jar.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private List<Provider> gatherProviders(BiPredicate<String, String> filter) {
return List.of();

try {
return Files.walk(services)
return Files.list(services)
.filter(Files::isRegularFile)
.map(path -> getProvider(path, filter))
.toList();
Expand Down

0 comments on commit e7f217d

Please sign in to comment.