File tree Expand file tree Collapse file tree
src/main/kotlin/com/lambda/module/modules/movement Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments