From 4ab667b37eb510ad50c8b3df458727db6b11c363 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Fri, 14 Mar 2025 19:32:04 +0700 Subject: [PATCH] Ooprs!!1 --- .../kotlin/ru/dbotthepony/mc/otm/core/collect/IntRange2Set.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())