From d08a928e0476e6112625488244bec267184fb095 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 25 Mar 2025 13:22:29 +0700 Subject: [PATCH] a --- .../kotlin/ru/dbotthepony/mc/otm/core/collect/BlockPosSet.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }