Skip to content

Commit 92da438

Browse files
AutoWalk fixes (#328)
1 parent afb4bde commit 92da438

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import com.lambda.interaction.managers.interacting.InteractManager
2727
import com.lambda.module.Module
2828
import com.lambda.module.tag.ModuleTag
2929
import com.lambda.util.math.MathUtils.toDouble
30+
import com.lambda.util.player.MovementUtils.jumping
3031
import com.lambda.util.player.MovementUtils.roundedForward
3132
import com.lambda.util.player.MovementUtils.roundedStrafing
3233
import com.lambda.util.player.MovementUtils.sneaking
@@ -49,6 +50,7 @@ object AutoWalk : Module(
4950
@Group(MOVEMENT_GROUP) private val strafeRight by setting("Strafe Right", false, "Automatically strafes right")
5051
@Group(MOVEMENT_GROUP) private val sneak by setting("Sneak", false, "Automatically sneaks")
5152
@Group(MOVEMENT_GROUP) private val sprint by setting("Sprint", false, "Automatically sprints")
53+
@Group(MOVEMENT_GROUP) private val jump by setting("Jump", false, "Automatically holds jump")
5254

5355
@Group(PAUSING_GROUP) private val pauseWhileMining by setting("Pause While Mining", false, "Pauses walking while breaking blocks or when breaks are queued")
5456
@Group(PAUSING_GROUP) private val pauseWhilePlacing by setting("Pause While Placing", false, "Pauses walking while placing blocks or when places are queued - only works with blocks placed by a lambda module")
@@ -94,6 +96,7 @@ object AutoWalk : Module(
9496
input.update(
9597
forward = forward,
9698
strafe = strafe,
99+
jump = jump || input.jumping,
97100
sneak = sneak || input.sneaking,
98101
sprint = sprint || input.sprinting
99102
)

‎src/main/kotlin/com/lambda/module/modules/render/Freecam.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ object Freecam : Module(
158158
it.cancel()
159159
}
160160

161-
listen<MovementEvent.InputUpdate> { event ->
161+
listen<MovementEvent.InputUpdate>({ 1 }) { event -> // Higher priority than auto walk so it's input survives the cancel below
162162
mc.options.perspective = Perspective.FIRST_PERSON
163163

164164
// Don't block baritone from working

0 commit comments

Comments
 (0)