From 73624dbf2dd8a90f6871d4420c5ff8067554420f Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 23 Apr 2021 16:29:00 +0200 Subject: [PATCH] Use the extract method from config4k in Configuration.kt --- .../kotlin/fr/username404/snowygui/config/Configuration.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt index 8ca505d..2874c4f 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -5,6 +5,7 @@ import com.typesafe.config.ConfigException import com.typesafe.config.ConfigFactory import com.typesafe.config.ConfigRenderOptions import fr.username404.snowygui.Snowy +import io.github.config4k.extract import net.minecraft.client.Minecraft import java.io.File @@ -30,7 +31,7 @@ object Configuration { Snowy.logs.warn("Could not parse the snowy configuration file, the default configuration will be used instead.") } } - ConfigFactory.load(result).getConfig("Snowy").resolveWith(baseConf) + ConfigFactory.load(result).extract("Snowy").resolveWith(baseConf) } init { Runtime.getRuntime().addShutdownHook(