Don't create "top most" config declaration
Because it is not required and clutters vision
This commit is contained in:
parent
5c1aaaa352
commit
58e5dfb505
@ -6,13 +6,10 @@ import net.minecraftforge.fml.config.ModConfig
|
|||||||
|
|
||||||
object ClientConfig {
|
object ClientConfig {
|
||||||
private val specBuilder = ForgeConfigSpec.Builder()
|
private val specBuilder = ForgeConfigSpec.Builder()
|
||||||
|
@Suppress("JoinDeclarationAndAssignment")
|
||||||
private val spec: ForgeConfigSpec
|
private val spec: ForgeConfigSpec
|
||||||
private var registered = false
|
private var registered = false
|
||||||
|
|
||||||
init {
|
|
||||||
specBuilder.comment("Clientside Config").push("client")
|
|
||||||
}
|
|
||||||
|
|
||||||
var EXOPACK_INVENTORY_ROWS: Int by specBuilder
|
var EXOPACK_INVENTORY_ROWS: Int by specBuilder
|
||||||
.comment("Amount of inventory rows to show when wearing Exosuit")
|
.comment("Amount of inventory rows to show when wearing Exosuit")
|
||||||
.defineInRange("exosuitInventoryRows", 3, 3, 6)
|
.defineInRange("exosuitInventoryRows", 3, 3, 6)
|
||||||
@ -26,7 +23,6 @@ object ClientConfig {
|
|||||||
.define("exopackFreeScroll", true)
|
.define("exopackFreeScroll", true)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
|
||||||
spec = specBuilder.build()
|
spec = specBuilder.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@ interface ConciseBalanceValues {
|
|||||||
|
|
||||||
object ServerConfig {
|
object ServerConfig {
|
||||||
private val specBuilder = ForgeConfigSpec.Builder()
|
private val specBuilder = ForgeConfigSpec.Builder()
|
||||||
|
@Suppress("JoinDeclarationAndAssignment")
|
||||||
private val spec: ForgeConfigSpec
|
private val spec: ForgeConfigSpec
|
||||||
private var registered = false
|
private var registered = false
|
||||||
|
|
||||||
@ -78,10 +79,6 @@ object ServerConfig {
|
|||||||
return obj
|
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)
|
val LABORATORY_LAMP_LIGHT_LENGTH: Int by specBuilder.comment("In blocks").defineInRange("laboratoryLampLightLength", 6, 1, 128)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
@ -262,7 +259,6 @@ object ServerConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
|
||||||
spec = specBuilder.build()
|
spec = specBuilder.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user