Fix some streams not being closed, clean up the mod reobfuscater, fix runClient task

This commit is contained in:
modmuss50
2018-11-03 13:50:57 +00:00
parent 356a7c4d00
commit 30a71c133d
5 changed files with 26 additions and 20 deletions

View File

@@ -66,7 +66,6 @@ public class RunClientTask extends JavaExec {
//Removes the deobf jars
libs.removeIf(s -> s.contains(Constants.MINECRAFT_FINAL_JAR.get(extension).getName()));
libs.removeIf(s -> s.contains(getProject().getName() + "-" + getProject().getVersion() + "-deobf.jar"));
classpath(libs);
@@ -77,6 +76,14 @@ public class RunClientTask extends JavaExec {
super.exec();
}
@Override
public void setWorkingDir(File dir) {
if(!dir.exists()){
dir.mkdirs();
}
super.setWorkingDir(dir);
}
@Override
public String getMain() {
return "net.minecraft.launchwrapper.Launch";