diff --git a/src/main/java/org/cubewhy/celestial/Celestial.java b/src/main/java/org/cubewhy/celestial/Celestial.java index f8f6de7c..d5669edf 100644 --- a/src/main/java/org/cubewhy/celestial/Celestial.java +++ b/src/main/java/org/cubewhy/celestial/Celestial.java @@ -103,9 +103,9 @@ public static void main(String[] args) throws Exception { private static void run(String[] args) throws Exception { - initTheme(); // init theme // init config initConfig(); + initTheme(); // init theme OptionParser optionParser = new OptionParser(); optionParser.accepts("help", "Print help and exit") @@ -278,8 +278,7 @@ private static File getMinecraftFolder() { } public static void initTheme() throws IOException { - JsonElement theme = config.getValue("theme"); - String themeType = (theme.isJsonNull()) ? "dark" : theme.getAsString(); + String themeType = config.getValue("theme").getAsString(); log.info("Set theme -> " + themeType); switch (themeType) { case "dark" -> {