diff options
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/internal')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/internal/config/profiles/Profiles.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/internal/config/profiles/Profiles.java b/src/main/java/cc/polyfrost/oneconfig/internal/config/profiles/Profiles.java index baa5d48..6a52d16 100644 --- a/src/main/java/cc/polyfrost/oneconfig/internal/config/profiles/Profiles.java +++ b/src/main/java/cc/polyfrost/oneconfig/internal/config/profiles/Profiles.java @@ -45,6 +45,9 @@ public class Profiles { private static ArrayList<String> profiles; public static String getCurrentProfile() { + if (OneConfigConfig.getInstance() == null) { + OneConfigConfig.getInstance(); + } if (!profileDir.exists() && !profileDir.mkdir()) { LOGGER.fatal("Could not create profiles folder"); return null; @@ -80,7 +83,7 @@ public class Profiles { return new File(getProfileDir(), file); } - public static File getNonProfileSpecificDir(String file) { + public static File getNonProfileSpecificFile(String file) { return new File(nonProfileSpecificDir, file); } |