diff options
author | Cow <cow@volloeko.de> | 2020-09-24 17:58:17 +0200 |
---|---|---|
committer | Cow <cow@volloeko.de> | 2020-09-24 17:58:17 +0200 |
commit | 7d4f2b900254d961b847f573237e3e6f40bff8e9 (patch) | |
tree | 8fa85fc9212ffc9b8a16796c682d87667ec294a5 /src/main/java/de/cowtipper/cowlection/Cowlection.java | |
parent | 705299e37d27d421156a09213e0654d0ab4fb01c (diff) | |
download | Cowlection-7d4f2b900254d961b847f573237e3e6f40bff8e9.tar.gz Cowlection-7d4f2b900254d961b847f573237e3e6f40bff8e9.tar.bz2 Cowlection-7d4f2b900254d961b847f573237e3e6f40bff8e9.zip |
Config (gui) rework
- Completely re-done the config gui (`/moo config`)
- Improved SkyBlock dungeon party finder
- Improved SkyBlock dungeon performance overlay
- Improved handling of invalid/missing Hypixel API key
- minor text fixes
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/Cowlection.java')
-rw-r--r-- | src/main/java/de/cowtipper/cowlection/Cowlection.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/Cowlection.java b/src/main/java/de/cowtipper/cowlection/Cowlection.java index 50df539..4aefd5b 100644 --- a/src/main/java/de/cowtipper/cowlection/Cowlection.java +++ b/src/main/java/de/cowtipper/cowlection/Cowlection.java @@ -29,7 +29,6 @@ import java.io.File; @Mod(modid = Cowlection.MODID, name = Cowlection.MODNAME, version = Cowlection.VERSION, clientSideOnly = true, - guiFactory = "@PACKAGE@.config.MooGuiFactory", updateJSON = "https://raw.githubusercontent.com/cow-mc/Cowlection/master/update.json") public class Cowlection { public static final String MODID = "@MODID@"; @@ -54,15 +53,16 @@ public class Cowlection { logger = e.getModLog(); modsDir = e.getSourceFile().getParentFile(); + chatHelper = new ChatHelper(); + this.configDir = new File(e.getModConfigurationDirectory(), MODID + File.separatorChar); if (!configDir.exists()) { configDir.mkdirs(); } friendsHandler = new FriendsHandler(this, new File(configDir, "friends.json")); - config = new MooConfig(this, new Configuration(new File(configDir, MODID + ".cfg"))); - - chatHelper = new ChatHelper(); + moo = new CredentialStorage(new Configuration(new File(configDir, "do-not-share-me-with-other-players.cfg"))); + config = new MooConfig(this, new Configuration(new File(configDir, MODID + ".cfg"), "1")); } @EventHandler @@ -77,7 +77,7 @@ public class Cowlection { } // key bindings keyBindings = new KeyBinding[1]; - keyBindings[0] = new KeyBinding("key.cowlection.moo.desc", Keyboard.KEY_M, "key.cowlection.category"); + keyBindings[0] = new KeyBinding("key.cowlection.moo", Keyboard.KEY_M, "key.cowlection.category"); for (KeyBinding keyBinding : keyBindings) { ClientRegistry.registerKeyBinding(keyBinding); |