aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/Cowlection.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/Cowlection.java')
-rw-r--r--src/main/java/de/cowtipper/cowlection/Cowlection.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/Cowlection.java b/src/main/java/de/cowtipper/cowlection/Cowlection.java
index 4e9a858..0b0532d 100644
--- a/src/main/java/de/cowtipper/cowlection/Cowlection.java
+++ b/src/main/java/de/cowtipper/cowlection/Cowlection.java
@@ -41,6 +41,7 @@ public class Cowlection {
public static KeyBinding[] keyBindings;
private static Cowlection instance;
private File modsDir;
+ private File configDir;
private File modOutDir;
private MooConfig config;
private CredentialStorage moo;
@@ -62,7 +63,7 @@ public class Cowlection {
chatHelper = new ChatHelper();
- File configDir = new File(e.getModConfigurationDirectory(), MODID + File.separatorChar);
+ configDir = new File(e.getModConfigurationDirectory(), MODID + File.separatorChar);
if (!configDir.exists()) {
configDir.mkdirs();
}
@@ -168,6 +169,10 @@ public class Cowlection {
return modsDir;
}
+ public File getConfigDirectory() {
+ return configDir;
+ }
+
public File getModOutDirectory() {
if (!modOutDir.exists() && !modOutDir.mkdirs()) {
// dir didn't exist and couldn't be created