Skip to content

Commit 512a30c

Browse files
committed
Fix library lookup
1 parent 3c35df1 commit 512a30c

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

  • src/main/java/org/mcphackers/mcp

src/main/java/org/mcphackers/mcp/MCP.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -354,13 +354,7 @@ public final void changeLanguage(Language lang) {
354354
}
355355

356356
public List<Path> getLibraries() {
357-
try {
358-
// Omit source JARs and only add JARs with classes
359-
return FileUtil.walkDirectory(MCPPaths.get(this, MCPPaths.LIB), (path) -> !path.getFileName().toString().endsWith("-sources.jar") && path.getFileName().toString().endsWith(".jar"));
360-
} catch (IOException e) {
361-
// Default to version libraries
362-
return DownloadData.getLibraries(MCPPaths.get(this, MCPPaths.LIB), getCurrentVersion());
363-
}
357+
return DownloadData.getLibraries(MCPPaths.get(this, MCPPaths.LIB), getCurrentVersion());
364358
}
365359

366360
public static void reloadPluginTranslations() {

0 commit comments

Comments
 (0)