mirror of
https://github.com/AltarikMC/Launcher
synced 2024-11-22 06:19:50 +01:00
Fix bug when invalidating with newer version of nodejs
This commit is contained in:
parent
93fbfa4fc4
commit
2d015422c6
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user