1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-23 12:05:44 +01:00

Ensure the launcher directory is referenced absolutely

Fixes #379
This commit is contained in:
Henry Le Grys 2021-01-05 23:05:44 +00:00
parent f53ee9b6fa
commit 92048fbd3a

View File

@ -411,9 +411,10 @@ public final class Launcher {
File dir = options.getDir();
if (dir != null) {
dir = dir.getAbsoluteFile();
log.info("Using given base directory " + dir.getAbsolutePath());
} else {
dir = new File("");
dir = new File("").getAbsoluteFile();
log.info("Using current directory " + dir.getAbsolutePath());
}