From 2d015422c6fd5ac59d1b2a9f7d9bcacd4d8b2435 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Fri, 10 Nov 2023 23:34:16 +0100 Subject: [PATCH] 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") }