Skip to content

Commit 1e4ce31

Browse files
committed
pause sneaking for a tick to drop off ledges
1 parent 8c653c4 commit 1e4ce31

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/kotlin/com/lambda/module/modules/movement/elytrafly/modes/BounceElytraFly.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,16 @@ class BounceElytraFly(
176176
listen<MovementEvent.InputUpdate> { event ->
177177
val input = event.input
178178
val playerInput = input.playerInput
179+
val sneak = player.velocity.horizontal.length() > 0.001 || !player.isSneaking
180+
179181
if (sneakLeft || sneakRight) {
180182
input.playerInput = PlayerInput(
181183
playerInput.forward,
182184
playerInput.backward,
183185
sneakLeft,
184186
sneakRight,
185187
playerInput.jump,
186-
true,
188+
sneak,
187189
false
188190
)
189191
input.movementVector = Vec2f(

0 commit comments

Comments
 (0)