Skip to content

Commit 81998b6

Browse files
committed
air option in printer
1 parent f169168 commit 81998b6

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/Printer.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ object Printer : Module(
4848
}.getOrDefault(false)
4949

5050
private val range by setting("Range", 5, 1..7, 1).group(Group.General)
51+
private val air by setting("Air", false).group(Group.General)
52+
5153
override val buildConfig = BuildSettings(this, Group.Build).apply {
5254
editTyped(::pathing, ::stayInRange) { defaultValue(false) }
5355
}
@@ -88,6 +90,7 @@ object Printer : Module(
8890
.asSequence()
8991
.map { it.blockPos }
9092
.associateWith { TargetState.State(schematicWorld.getBlockState(it)) }
93+
.filter { air || !it.value.blockState.isAir }
9194
}.build(finishOnDone = false).run()
9295
}
9396

0 commit comments

Comments
 (0)