mirror of
https://github.com/LucasDower/ObjToSchematic.git
synced 2024-12-09 02:49:57 +08:00
Fixed infinite recursion
This commit is contained in:
parent
874dcba875
commit
a9b555cfb8
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user