From 94ce38068c7d561f84117806ea62c62910bfabaf Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Tue, 1 Feb 2022 14:34:32 +0000 Subject: [PATCH] Filter out classpath entries that do not exist. --- src/main/java/net/fabricmc/loom/task/AbstractRunTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/task/AbstractRunTask.java b/src/main/java/net/fabricmc/loom/task/AbstractRunTask.java index d88633f..e52f3a3 100644 --- a/src/main/java/net/fabricmc/loom/task/AbstractRunTask.java +++ b/src/main/java/net/fabricmc/loom/task/AbstractRunTask.java @@ -45,7 +45,7 @@ public abstract class AbstractRunTask extends JavaExec { setGroup(Constants.TaskGroup.FABRIC); this.config = configProvider.apply(getProject()); - setClasspath(config.sourceSet.getRuntimeClasspath().filter(new LibraryFilter())); + setClasspath(config.sourceSet.getRuntimeClasspath().filter(File::exists).filter(new LibraryFilter())); args(config.programArgs); getMainClass().set(config.mainClass); }