Skip to content

Commit

Permalink
Fix crash with optifabric
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Sep 27, 2024
1 parent c48f96c commit cf03dd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/cpw/mods/fml/common/ModClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ public File[] getParentSources() {

try {
for (URL url : urls) {
files.add(new File(url.toURI()));
try {
files.add(new File(url.toURI()));
} catch (IllegalArgumentException ignored) {
System.err.println("Found non file url while getting sources from Knot classloader: " + url.toURI());
}
}

return files.toArray(new File[0]);
Expand Down

0 comments on commit cf03dd7

Please sign in to comment.