diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/IntRange2Set.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/IntRange2Set.kt index fccb08844..7e1588613 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/IntRange2Set.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/IntRange2Set.kt @@ -87,7 +87,7 @@ class IntRange2Set private constructor(private val first: Int, private val last: } override fun isEmpty(): Boolean { - return last > first + return last < first } override fun toArray(a: IntArray?): IntArray { @@ -158,7 +158,7 @@ class IntRange2Set private constructor(private val first: Int, private val last: } override val size: Int - get() = if (last > first) 0 else last - first + 1 + get() = if (last < first) 0 else last - first + 1 override fun toString(): String { if (isEmpty())