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 8a3f071..6247c51 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -70,9 +70,11 @@ object Configuration { writeConfig(it) } } - val enabledFeatures: MutableMap = if (obtained.hasPath("enabledFeatures")) { - obtained.extract("enabledFeatures") - } else mutableMapOf() + val enabledFeatures = mutableMapOf().apply { + if (obtained.hasPath("enabledFeatures")) { + putAll(obtained.extract("enabledFeatures")) + } + } val macros: MutableSet = run { if (!macroFile.exists()) macroFile.createNewFile() macroFile.readLines(Charset.forName("UTF-8")).map {