diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/Decimal.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/Decimal.kt index ea8435620..63e908e70 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/Decimal.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/Decimal.kt @@ -1502,8 +1502,8 @@ sealed class Decimal : Number(), Comparable { } else { return when (input[0]) { TYPE_NORMAL -> raw(BigInteger(input.copyOfRange(1, input.size))) - TYPE_NEGATIVE_INFINITY -> NegativeInfinity - TYPE_POSITIVE_INFINITY -> PositiveInfinity + TYPE_NEGATIVE_INFINITY -> if (input.size == 1) NegativeInfinity else Zero + TYPE_POSITIVE_INFINITY -> if (input.size == 1) PositiveInfinity else Zero // TYPE_ZERO -> Zero else -> Zero }