Skip to content

Commit 8c3324d

Browse files
committed
fix nuker
1 parent 30e1beb commit 8c3324d

File tree

1 file changed

+3
-0
lines changed
  • src/main/kotlin/com/lambda/module/modules/player

1 file changed

+3
-0
lines changed

src/main/kotlin/com/lambda/module/modules/player/Nuker.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import com.lambda.task.RootTask.run
2626
import com.lambda.task.Task
2727
import com.lambda.task.tasks.BuildTask.Companion.build
2828
import com.lambda.util.BaritoneUtils
29+
import com.lambda.util.BlockUtils.blockPos
2930
import com.lambda.util.BlockUtils.blockState
3031
import 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
}

0 commit comments

Comments
 (0)