diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/ClientConfig.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/ClientConfig.kt index 1aa43dbea..5f1638064 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/ClientConfig.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/ClientConfig.kt @@ -6,13 +6,10 @@ import net.minecraftforge.fml.config.ModConfig object ClientConfig { private val specBuilder = ForgeConfigSpec.Builder() + @Suppress("JoinDeclarationAndAssignment") private val spec: ForgeConfigSpec private var registered = false - init { - specBuilder.comment("Clientside Config").push("client") - } - var EXOPACK_INVENTORY_ROWS: Int by specBuilder .comment("Amount of inventory rows to show when wearing Exosuit") .defineInRange("exosuitInventoryRows", 3, 3, 6) @@ -26,7 +23,6 @@ object ClientConfig { .define("exopackFreeScroll", true) init { - specBuilder.pop() spec = specBuilder.build() } diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/ServerConfig.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/ServerConfig.kt index b3df72b72..3bac5a3ce 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/ServerConfig.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/ServerConfig.kt @@ -33,6 +33,7 @@ interface ConciseBalanceValues { object ServerConfig { private val specBuilder = ForgeConfigSpec.Builder() + @Suppress("JoinDeclarationAndAssignment") private val spec: ForgeConfigSpec private var registered = false @@ -78,10 +79,6 @@ object ServerConfig { return obj } - init { - specBuilder.comment("Serverside config, holds shared values that are required to be read by both client and server.").push("server") - } - val LABORATORY_LAMP_LIGHT_LENGTH: Int by specBuilder.comment("In blocks").defineInRange("laboratoryLampLightLength", 6, 1, 128) init { @@ -262,7 +259,6 @@ object ServerConfig { } init { - specBuilder.pop() spec = specBuilder.build() }