diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-25 09:45:52 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-06-25 09:45:52 +0200 |
commit | 0271c812d7ac4fce142b92f8a32cc9bfe6a9db89 (patch) | |
tree | 64f6eaf356caed52dc3f964b1788a50ecd13c191 /src | |
parent | 2671d33f62608d9fb2a6dbac5d2ccfeafd3dcd0e (diff) | |
download | OneConfig-0271c812d7ac4fce142b92f8a32cc9bfe6a9db89.tar.gz OneConfig-0271c812d7ac4fce142b92f8a32cc9bfe6a9db89.tar.bz2 OneConfig-0271c812d7ac4fce142b92f8a32cc9bfe6a9db89.zip |
config instance
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/Config.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/Config.java b/src/main/java/cc/polyfrost/oneconfig/config/Config.java index ee1d2bd..37dcf18 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/Config.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/Config.java @@ -33,6 +33,7 @@ import java.util.Optional; import java.util.function.Supplier; public class Config { + public static Config INSTANCE = null; public final transient HashMap<String, BasicOption> optionNames = new HashMap<>(); transient protected final String configFile; transient protected final Gson gson = new GsonBuilder().excludeFieldsWithModifiers(Modifier.TRANSIENT).setPrettyPrinting().create(); @@ -60,6 +61,7 @@ public class Config { ConfigCore.oneConfigMods.add(mod); this.mod = mod; hasBeenInitialized = true; + INSTANCE = this; } /** |