Skip to content

Commit 25a71dc

Browse files
committed
Fix my shortsightedness above.
1 parent bf484f7 commit 25a71dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/java/dev/koifysh/archipelago/Client.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ public abstract class Client {
3333
static
3434
{
3535
String appData = System.getenv("LOCALAPPDATA");
36-
String userHome = System.getProperty("USERPROFILE");
36+
String winHome = System.getenv("USERPROFILE");
37+
String userHome = System.getProperty("user.home");
38+
3739
if(appData == null || appData.isEmpty()) {
38-
windowsDataPackageCache = Paths.get(userHome, "appdata","local","Archipelago","cache","datapackage");
39-
40+
windowsDataPackageCache = Paths.get(winHome, "appdata","local","Archipelago","cache","datapackage");
4041
} else {
41-
windowsDataPackageCache = Paths.get(appData, "Archipelago", "cache", "datapackage");
42+
windowsDataPackageCache = Paths.get(appData, "Archipelago", "cache", "datapackage");
4243
}
44+
4345
otherDataPackageCache = Paths.get(userHome, ".cache", "Archipelago", "datapackage");
4446
}
4547

0 commit comments

Comments
 (0)