- [Input pipe] Try to fix text not working on 1.12.2 and below.
- [MC version manage] Copy from inheritsFrom if could not download version.
This commit is contained in:
khanhduytran0 2020-11-10 20:01:49 +07:00
parent 5f12dc0dcd
commit 79c3386e2a
4 changed files with 263 additions and 258 deletions

View file

@ -727,11 +727,9 @@ public final class Tools
return buffer;
}
public static void downloadFile(String urlInput, String nameOutput, boolean requireNonExist) throws Throwable {
File fileDDD = new File(nameOutput);
if(requireNonExist && !fileDDD.exists()) {
DownloadUtils.downloadFile(urlInput, fileDDD);
}
public static void downloadFile(String urlInput, String nameOutput) throws Throwable {
File file = new File(nameOutput);
DownloadUtils.downloadFile(urlInput, file);
}
public static class ZipTool
{