diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-02-20 15:50:05 +0100 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-02-20 15:50:05 +0100 |
commit | 428bb5d412b66cda37d6f2199e81d0cb81a8bb96 (patch) | |
tree | ee2b2da00309496e74339a16ca9988f6a98a962b /src/main/java/io/polyfrost/oneconfig/OneConfig.java | |
parent | dfa65f6236c226eb88f4e3761e10e80e5f37c22b (diff) | |
download | OneConfig-428bb5d412b66cda37d6f2199e81d0cb81a8bb96.tar.gz OneConfig-428bb5d412b66cda37d6f2199e81d0cb81a8bb96.tar.bz2 OneConfig-428bb5d412b66cda37d6f2199e81d0cb81a8bb96.zip |
profile system
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/OneConfig.java')
-rw-r--r-- | src/main/java/io/polyfrost/oneconfig/OneConfig.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/OneConfig.java b/src/main/java/io/polyfrost/oneconfig/OneConfig.java index 9d6ed49..1b90f6b 100644 --- a/src/main/java/io/polyfrost/oneconfig/OneConfig.java +++ b/src/main/java/io/polyfrost/oneconfig/OneConfig.java @@ -1,7 +1,9 @@ package io.polyfrost.oneconfig; import io.polyfrost.oneconfig.command.OneConfigCommand; -import io.polyfrost.oneconfig.renderer.Renderer; +import io.polyfrost.oneconfig.config.OneConfigConfig; +import io.polyfrost.oneconfig.config.core.ConfigCore; +import io.polyfrost.oneconfig.config.profiles.Profiles; import io.polyfrost.oneconfig.test.TestConfig; import io.polyfrost.oneconfig.themes.Themes; import net.minecraft.client.Minecraft; @@ -19,17 +21,20 @@ public class OneConfig { public static File jarFile; public static File oneConfigDir = new File(mc.mcDataDir, "OneConfig/"); public static File themesDir = new File(oneConfigDir, "themes/"); - public static TestConfig config = new TestConfig(); + public static OneConfigConfig config; + public static TestConfig testConfig; @Mod.EventHandler public void onPreFMLInit(FMLPreInitializationEvent event) { jarFile = event.getSourceFile(); oneConfigDir.mkdirs(); themesDir.mkdirs(); + config = new OneConfigConfig(); } @Mod.EventHandler public void onFMLInitialization(FMLInitializationEvent event) { + testConfig = new TestConfig(); ClientCommandHandler.instance.registerCommand(new OneConfigCommand()); MinecraftForge.EVENT_BUS.register(this); Themes.openTheme(new File("OneConfig/themes/one.zip").getAbsoluteFile()); |