diff --git a/package.json b/package.json index 661e97a..a0959b1 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "extract-zip": "^2.0.1", "hasha": "^5.2.2", "izitoast": "^1.4.0", - "minecraft-launcher-core": "^3.17.2", + "minecraft-launcher-core": "^3.17.3", "msmc": "^4.1.0", "node-fetch": "^2.7.0", "vue": "^3.3.4" diff --git a/src/server/minecraft.js b/src/server/minecraft.js index a8f2ab8..299c052 100644 --- a/src/server/minecraft.js +++ b/src/server/minecraft.js @@ -369,11 +369,11 @@ class Minecraft { const librairies = join(this.minecraftpath,"libraries") const natives = join(this.minecraftpath, "natives") if(fs.existsSync(assets)) - fs.rmdirSync(assets, { recursive: true }) + fs.rmSync(assets, { recursive: true }) if(fs.existsSync(librairies)) - fs.rmdirSync(librairies, { recursive: true }) + fs.rmSync(librairies, { recursive: true }) if(fs.existsSync(natives)) - fs.rmdirSync(natives, { recursive: true }) + fs.rmSync(natives, { recursive: true }) logger.info("Game data invalidated") event.sender.send("invalidated") } diff --git a/yarn.lock b/yarn.lock index 560b61e..039cd25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2379,10 +2379,10 @@ mimic-response@^3.1.0: resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== -minecraft-launcher-core@^3.17.2: - version "3.17.2" - resolved "https://registry.yarnpkg.com/minecraft-launcher-core/-/minecraft-launcher-core-3.17.2.tgz#a636ec0cfb949945183492d9278d36343845f56d" - integrity sha512-f1i75Fno5LSYJKbuia0/5Q4H3R5bVTaC4h6UjbQt2Yv1qyJjDgAWYCZz61SjxEYYKbSmJVMLNkulr4pfuaJ+Pw== +minecraft-launcher-core@^3.17.3: + version "3.17.3" + resolved "https://registry.yarnpkg.com/minecraft-launcher-core/-/minecraft-launcher-core-3.17.3.tgz#59432af9cd35e2fc2098e28063e9c81f5a4203cb" + integrity sha512-yA/WKkw6zcIFBKS4OCXEeQfdtKhXHZVz4cS5pmouOohxk8JZQI/i+BDMl7Ny3jHUnUv7n9VPK4ZQ6jhadhhXxQ== dependencies: adm-zip "^0.4.13" checksum "^0.1.1"