Skip to content

Commit 563137a

Browse files
committed
?: return@listen over if null 🤓
1 parent 9bd5068 commit 563137a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/main/kotlin/com/lambda/module/modules/player

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ object Scaffold : Module(
7474
init {
7575
listen<TickEvent.Pre> {
7676
val beneath = player.blockPos.offset(Direction.DOWN, if (isKeyPressed(descend.code)) 2 else 1)
77-
val placements = getPlacements(beneath)
78-
if (placements == null) return@listen
77+
val placements = getPlacements(beneath) ?: return@listen
7978
placements
8079
.associate { it to TargetState.Solid }
8180
.toBlueprint()

0 commit comments

Comments
 (0)