From 8d062c16bcd1f58af2ed67210f976cb4db19210e Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Fri, 10 Nov 2023 23:38:52 +0100 Subject: [PATCH] Remove version folder when invalidating data --- src/server/minecraft.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/minecraft.js b/src/server/minecraft.js index 299c052..af09558 100644 --- a/src/server/minecraft.js +++ b/src/server/minecraft.js @@ -368,12 +368,15 @@ class Minecraft { const assets = join(this.minecraftpath, "assets") const librairies = join(this.minecraftpath,"libraries") const natives = join(this.minecraftpath, "natives") + const versions = join(this.minecraftpath, "versions") if(fs.existsSync(assets)) fs.rmSync(assets, { recursive: true }) if(fs.existsSync(librairies)) fs.rmSync(librairies, { recursive: true }) if(fs.existsSync(natives)) fs.rmSync(natives, { recursive: true }) + if(fs.existsSync(versions)) + fs.rmSync(versions, { recursive: true }) logger.info("Game data invalidated") event.sender.send("invalidated") }