Fix file not found with remapper

This commit is contained in:
modmuss50 2016-10-12 11:08:12 +01:00
parent b43793b3fc
commit 68cd938036
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -78,7 +78,7 @@ public class ModRemapper {
classpathFiles.addAll(project.getConfigurations().getByName("compile").getFiles());
classpathFiles.addAll(project.getConfigurations().getByName(Constants.CONFIG_MC_DEPENDENCIES_CLIENT).getFiles());
classpathFiles.addAll(project.getConfigurations().getByName(Constants.CONFIG_MC_DEPENDENCIES).getFiles());
classpathFiles.add(Constants.MINECRAFT_FINAL_JAR.get(extension));
classpathFiles.add(new File(Constants.MINECRAFT_FINAL_JAR.get(extension).getAbsolutePath()));//Seems to fix it not finding it
Path[] classpath = new Path[classpathFiles.size()];
for (int i = 0; i < classpathFiles.size(); i++) {