diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/BlockPosSet.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/BlockPosSet.kt index 129e77d32..b42bfdd85 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/BlockPosSet.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/collect/BlockPosSet.kt @@ -122,10 +122,10 @@ class BlockPosSet : MutableSet { } override fun isEmpty(): Boolean { - var any = false + var any = true segments.entries.removeIf { (_, s) -> - any = any || s.isEmpty + any = any && s.isEmpty s.isEmpty }