Skip to content

Commit f70af5e

Browse files
committed
small formatting cleanup i missed in review
1 parent 2e59410 commit f70af5e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

src/main/kotlin/com/lambda/module/modules/movement/AutoWalk.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ object AutoWalk : Module(
6969
InteractManager.blockedPositions.isNotEmpty()
7070

7171
init {
72-
7372
listen<PacketEvent.Send.Pre> { event ->
7473
if (event.packet is PlayerInteractBlockC2SPacket && pauseAfterPlacing)
7574
placeWaitTicks = ticksToWaitAfterPlacing
@@ -85,16 +84,18 @@ object AutoWalk : Module(
8584
) return@listen
8685

8786
val input = event.input
88-
val forward = if (walkForward || walkBackward) walkForward.toDouble() - walkBackward.toDouble()
87+
val forward =
88+
if (walkForward || walkBackward) walkForward.toDouble() - walkBackward.toDouble()
8989
else input.roundedForward
90-
val strafe = if (strafeLeft || strafeRight) strafeLeft.toDouble() - strafeRight.toDouble()
90+
val strafe =
91+
if (strafeLeft || strafeRight) strafeLeft.toDouble() - strafeRight.toDouble()
9192
else input.roundedStrafing
9293

9394
input.update(
9495
forward = forward,
9596
strafe = strafe,
9697
sneak = sneak || input.sneaking,
97-
sprint = sprint || input.sprinting,
98+
sprint = sprint || input.sprinting
9899
)
99100
}
100101
}

0 commit comments

Comments
 (0)