From 93fbfa4fc49cf86831b8229960cc8bc6ec9c7818 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 2 Nov 2023 22:54:22 +0000 Subject: [PATCH 1/2] Bump minecraft-launcher-core from 3.17.2 to 3.17.3 Bumps [minecraft-launcher-core](https://github.com/Pierce01/MinecraftLauncher-core) from 3.17.2 to 3.17.3. - [Commits](https://github.com/Pierce01/MinecraftLauncher-core/commits) --- updated-dependencies: - dependency-name: minecraft-launcher-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 553ffd8..0745acb 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/yarn.lock b/yarn.lock index 6bafd56..6be3134 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" From 2d015422c6fd5ac59d1b2a9f7d9bcacd4d8b2435 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Fri, 10 Nov 2023 23:34:16 +0100 Subject: [PATCH 2/2] Fix bug when invalidating with newer version of nodejs --- src/server/minecraft.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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") }