Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit f92e1f2

Browse files
committed
Fix incorrect path when using non-current working directory
1 parent 9e4ed9a commit f92e1f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/vazkii/instancesync/InstanceSync.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public static void main(String[] args) {
1414
System.out.println("InstanceSync " + VERSION);
1515

1616
long time = System.currentTimeMillis();
17-
File dir = new File(".");
18-
System.out.println("Running in " + dir.getAbsolutePath());
17+
File dir = new File(".").getAbsoluteFile().getParentFile();
18+
System.out.println("Running in " + dir);
1919

2020
File instanceFile = new File(dir, "minecraftinstance.json");
2121
if (!instanceFile.exists()) {

0 commit comments

Comments
 (0)