diff options
| author | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-11-23 03:34:12 +1100 |
|---|---|---|
| committer | Moulberry <james.jenour@student.scotch.wa.edu.au> | 2020-11-23 03:34:12 +1100 |
| commit | 089bac89c5435eb7e5cf80e7602da953a65f5b1a (patch) | |
| tree | ea6aea2afc38f6ef02884f0c3babdc5ed86058bb /src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java | |
| parent | 07403ec86c53f67b94d988b4c01a0afc2fdb2810 (diff) | |
| download | notenoughupdates-089bac89c5435eb7e5cf80e7602da953a65f5b1a.tar.gz notenoughupdates-089bac89c5435eb7e5cf80e7602da953a65f5b1a.tar.bz2 notenoughupdates-089bac89c5435eb7e5cf80e7602da953a65f5b1a.zip | |
1.7
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java index f70d3a3c..d5233bbd 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Constants.java @@ -4,12 +4,28 @@ import com.google.gson.JsonObject; public class Constants { - public static final JsonObject BONUSES = Utils.getConstant("bonuses"); - public static final JsonObject DISABLE = Utils.getConstant("disable"); - public static final JsonObject ENCHANTS = Utils.getConstant("enchants"); - public static final JsonObject LEVELING = Utils.getConstant("leveling"); - public static final JsonObject MISC = Utils.getConstant("misc"); - public static final JsonObject PETNUMS = Utils.getConstant("petnums"); - public static final JsonObject PETS = Utils.getConstant("pets"); + public static JsonObject BONUSES; + public static JsonObject DISABLE; + public static JsonObject ENCHANTS; + public static JsonObject LEVELING; + public static JsonObject MISC; + public static JsonObject PETNUMS; + public static JsonObject PETS; + public static JsonObject PARENTS; + + public static void reload() { + BONUSES = Utils.getConstant("bonuses"); + DISABLE = Utils.getConstant("disable"); + ENCHANTS = Utils.getConstant("enchants"); + LEVELING = Utils.getConstant("leveling"); + MISC = Utils.getConstant("misc"); + PETNUMS = Utils.getConstant("petnums"); + PETS = Utils.getConstant("pets"); + PARENTS = Utils.getConstant("parents"); + } + + static { + reload(); + } } |
