From 6e13ea3fd8b6487e3b0fa95de1a145206f79101a Mon Sep 17 00:00:00 2001 From: Johann Bernhardt Date: Fri, 10 Dec 2021 13:23:02 +0100 Subject: [PATCH] Fix server crash --- .../vazkii/botania/common/core/handler/ConfigHandler.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java b/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java index 259fc04ed..b8ab9cf50 100644 --- a/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java +++ b/src/main/java/vazkii/botania/common/core/handler/ConfigHandler.java @@ -41,6 +41,8 @@ public final class ConfigHandler { public static int hardcorePassiveGeneration = 72000; + public static boolean useAdaptativeConfig = true; + public static boolean useShaders = true; public static boolean lexiconRotatingItems = true; public static boolean lexiconJustifiedText = false; @@ -119,6 +121,10 @@ public final class ConfigHandler { public static void load() { String desc; + desc = "Set this to false to disable the Adaptative Config. Adaptative Config changes any default config values from old versions to the new defaults to make sure you aren't missing out on changes because of old configs. It will not touch any values that were changed manually."; + useAdaptativeConfig = loadPropBool("adaptativeConfig.enabled", desc, useAdaptativeConfig); + adaptor = new ConfigAdaptor(useAdaptativeConfig); + desc = "Set this to false to disable the use of shaders for some of the mod's renders."; useShaders = loadPropBool("shaders.enabled", desc, useShaders);