Skip to content

Commit d3b6202

Browse files
committed
Fix Speed engaging when player is mounted
1 parent a4db32e commit d3b6202

File tree

1 file changed

+5
-1
lines changed
  • src/main/kotlin/com/lambda/module/modules/movement

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ object Speed : Module(
186186
}
187187

188188
private fun SafeContext.shouldWork(): Boolean {
189-
if (player.abilities.flying || player.isElytraFlying || player.isTouchingWater || player.isInLava) return false
189+
if (player.abilities.flying
190+
|| player.isElytraFlying
191+
|| player.isTouchingWater
192+
|| player.isInLava
193+
|| player.hasVehicle()) return false
190194

191195
return when (mode) {
192196
Mode.GRIM_STRAFE -> !player.input.handledByBaritone

0 commit comments

Comments
 (0)