From ebafdbc92506668444a32c8db81e38b7089cd778 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Thu, 4 Jan 2024 16:38:09 +0700 Subject: [PATCH] Set MAX_ENERGY default config value to infinity --- src/main/kotlin/ru/dbotthepony/mc/otm/config/MachinesConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/config/MachinesConfig.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/config/MachinesConfig.kt index 3fc705cbd..5bb1b860b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/config/MachinesConfig.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/config/MachinesConfig.kt @@ -212,7 +212,7 @@ object MachinesConfig : AbstractConfig("machines") { val MAX_ENERGY by builder .comment("Maximal combined energy consumption percentage") - .defineDecimal("MAX_ENERGY", Decimal.LONG_MAX_VALUE, Decimal.ZERO) + .defineDecimal("MAX_ENERGY", Decimal.POSITIVE_INFINITY, Decimal.ZERO) init { builder.pop()