From 1696e378a95ebc3b73c4a4064eabb2febf851e1c Mon Sep 17 00:00:00 2001 From: ValentinKhmer Date: Sat, 2 Jul 2022 20:05:32 +0200 Subject: [PATCH] Correction of bugs --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 31561c4..8e77da0 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,7 @@ const rl = readline.createInterface(process.stdin, process.stdout); await superagent .get(`https://api.urancity.ml/client`) .set("User-Agent", "UranCityInstaller/1.1.0") - .retry(0) + .retry(10) ).body; // Define paths @@ -186,7 +186,7 @@ const rl = readline.createInterface(process.stdin, process.stdout); await wait(); fs.renameSync( - path.join(process.env.APPDATA, "Installer-main"), + path.join(process.env.APPDATA, "Client-main"), paths.urancity ); }, @@ -386,6 +386,7 @@ const rl = readline.createInterface(process.stdin, process.stdout); } await wait(); cliBar.update(100); + console.clear(); } }