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") }