Simplify last fix

dev/0.11
modmuss50 2019-09-06 20:09:13 +01:00
parent 6bec4e592a
commit 91c150c7e7
1 changed files with 3 additions and 8 deletions

View File

@ -62,14 +62,9 @@ public abstract class AbstractRunTask extends JavaExec {
MappingsProvider mappingsProvider = extension.getMappingsProvider();
List<String> libs = new ArrayList<>();
String[] configurations = new String[]{"compile", "implementation"};
for(String configuration : configurations){
for (File file : getProject().getConfigurations().getByName(configuration).getFiles()) {
libs.add(file.getAbsolutePath());
}
}
for (File file : getProject().getConfigurations().getByName("runtimeClasspath").getFiles()) {
libs.add(file.getAbsolutePath());
}
for (Path file : extension.getUnmappedMods()) {
if (Files.isRegularFile(file)) {
libs.add(file.toFile().getAbsolutePath());