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 24a60b14c..129e77d32 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 @@ -71,6 +71,7 @@ class BlockPosSet : MutableSet { throw NoSuchElementException() bits[last] = false + last = -1 } } } @@ -157,6 +158,7 @@ class BlockPosSet : MutableSet { override fun next(): BlockPos { findNext() last = current + foundNext = false val blockPos = current.next() return blockPos }