diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/worldgen/EnhancedPlacedFeature.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/worldgen/EnhancedPlacedFeature.kt index 96a1e6d3b..9f0902b44 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/worldgen/EnhancedPlacedFeature.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/worldgen/EnhancedPlacedFeature.kt @@ -147,7 +147,9 @@ object EnhancedPlacedFeature : Feature( private val placed = LinkedList() override fun place(context: EnhancedPlacementContext, positions: List, feature: EnhancedFeature.Configured<*, *>) { - placed.add(Placement(context, BlockPosSet().also { it.addAll(positions) }, feature)) + if (positions.isNotEmpty()) { + placed.add(Placement(context, BlockPosSet().also { it.addAll(positions) }, feature)) + } } fun place(context: FeaturePlaceContext<*>): Boolean {