mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-30 13:05:27 -05:00
Ensure path exists when loading transitive access wideners.
This commit is contained in:
@@ -26,6 +26,7 @@ package net.fabricmc.loom.configuration.accesswidener;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
@@ -112,6 +113,11 @@ public class TransitiveAccessWidenerJarProcessor implements JarProcessor {
|
||||
}
|
||||
|
||||
for (Path path : possibleModJars) {
|
||||
if (!Files.exists(path)) {
|
||||
project.getLogger().debug("Could not find transitive access widener in {} as it does not exist", path.toAbsolutePath());
|
||||
continue;
|
||||
}
|
||||
|
||||
AccessWidenerFile accessWidener = AccessWidenerFile.fromModJar(path);
|
||||
|
||||
if (accessWidener == null) {
|
||||
|
||||
Reference in New Issue
Block a user