Fixed infinite recursion

This commit is contained in:
Lucas Dower 2022-04-16 20:03:23 +01:00
parent 874dcba875
commit a9b555cfb8
No known key found for this signature in database
GPG Key ID: 04417F2FF6CBEC4C

View File

@ -67,7 +67,7 @@ export function getMinecraftDir(): string {
case 'darwin': // MacOS
return path.join(process.env.HOME!, './Library/Application Support/minecraft');
case 'win32': // Windows
return path.join(getMinecraftDir(), './.minecraft');
return path.join(process.env.APPDATA!, './.minecraft');
default:
return path.join(require('os').homedir(), '/.minecraft');
}