We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9d28a6 commit 17be0a8Copy full SHA for 17be0a8
1 file changed
src/main/java/org/mcphackers/mcp/tasks/TaskDownloadUpdate.java
@@ -38,7 +38,7 @@ public void doTask() throws Exception {
38
if(!assetObj.getString("name").endsWith(".jar")) {
39
continue;
40
}
41
- FileUtil.downloadFile(new URL(assetObj.getString("browser_download_url")), Paths.get("update.jar"));
+ FileUtil.downloadFile(new URL(assetObj.getString("browser_download_url")), Paths.get(MCPConfig.UPDATE_JAR));
42
43
44
MCP.logger.info("Press return key to continue");
@@ -49,7 +49,6 @@ public void doTask() throws Exception {
49
.getLocation()
50
.toURI());
51
if(!Files.isDirectory(jarPath)) {
52
- Files.copy(jarPath, Paths.get(MCPConfig.UPDATE_JAR));
53
Util.runCommand(new String[] {
54
Util.getJava(),
55
"-jar",
0 commit comments