File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/kotlin/com/lambda/module/modules/player Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import com.lambda.task.RootTask.run
2626import com.lambda.task.Task
2727import com.lambda.task.tasks.BuildTask.Companion.build
2828import com.lambda.util.BaritoneUtils
29+ import com.lambda.util.BlockUtils.blockPos
2930import com.lambda.util.BlockUtils.blockState
3031import net.minecraft.util.math.BlockPos
3132
@@ -49,6 +50,7 @@ object Nuker : Module(
4950 task = tickingBlueprint {
5051 val selection = BlockPos .iterateOutwards(player.blockPos, width, height, width)
5152 .asSequence()
53+ .map { it.blockPos }
5254 .filter { ! world.isAir(it) }
5355 .filter { ! flatten || it.y >= player.blockPos.y }
5456 .filter { ! instantOnly || blockState(it).getHardness(world, it) <= TaskFlowModule .build.breaking.breakThreshold }
@@ -66,6 +68,7 @@ object Nuker : Module(
6668
6769 if (fillFloor) {
6870 val floor = BlockPos .iterateOutwards(player.blockPos.down(), width, 0 , width)
71+ .map { it.blockPos }
6972 .associateWith { TargetState .Solid }
7073 return @tickingBlueprint selection + floor
7174 }
You can’t perform that action at this time.
0 commit comments