4
0
mirror of https://github.com/AltarikMC/Launcher synced 2024-11-21 06:09:51 +01:00

Fix bug when invalidating with newer version of nodejs

This commit is contained in:
Quentin Legot 2023-11-10 23:34:16 +01:00
parent 93fbfa4fc4
commit 2d015422c6

View File

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