aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/Cowlection.java
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2023-07-23 18:33:18 +0200
committerCow <cow@volloeko.de>2023-07-23 18:33:18 +0200
commit799046f0ff32a43956dc2f46df9ae5707d9dcfbf (patch)
treebfbb9b362f5d3054f0f39e413eccf71f98771b04 /src/main/java/de/cowtipper/cowlection/Cowlection.java
parentb039b737e57be6c16b8170edbf0eee894c8c30dd (diff)
downloadCowlection-799046f0ff32a43956dc2f46df9ae5707d9dcfbf.tar.gz
Cowlection-799046f0ff32a43956dc2f46df9ae5707d9dcfbf.tar.bz2
Cowlection-799046f0ff32a43956dc2f46df9ae5707d9dcfbf.zip
Added 2nd parameter to `/moo directory` to open config or mods directory
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