File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
common/src/main/kotlin/com/lambda/module/modules/player Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11package com.lambda.module.modules.player
22
3+ import baritone.utils.PlayerMovementInput
34import com.lambda.Lambda.mc
45import com.lambda.config.RotationSettings
56import com.lambda.event.events.ConnectionEvent
@@ -21,7 +22,6 @@ import com.lambda.util.primitives.extension.rotation
2122import com.lambda.util.world.raycast.RayCastMask
2223import com.lambda.util.world.raycast.RayCastUtils.rayCast
2324import net.minecraft.client.input.KeyboardInput
24- import net.minecraft.client.option.KeyBinding
2525import net.minecraft.entity.Entity
2626import net.minecraft.util.math.Vec3d
2727import kotlin.math.pow
@@ -81,10 +81,13 @@ object Freecam : Module(
8181 }
8282
8383 listener<MovementEvent .InputUpdate > { event ->
84- event.cancel()
84+ // Don't block baritone from working
85+ if (player.input !is PlayerMovementInput ) {
86+ event.cancel()
8587
86- // Reset actual input
87- player.input.cancel()
88+ // Reset actual input
89+ player.input.cancel()
90+ }
8891
8992 // Create new input for freecam
9093 val input = KeyboardInput (mc.options)
You can’t perform that action at this time.
0 commit comments