Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Fix AACHop3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Dec 27, 2023
1 parent 290238e commit a7a13d8
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
*/
package net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.aac

import net.ccbluex.liquidbounce.event.EventState
import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.event.MotionEvent
import net.ccbluex.liquidbounce.features.module.modules.movement.speedmodes.SpeedMode
import net.ccbluex.liquidbounce.utils.MovementUtils.isMoving

object AACHop350 : SpeedMode("AACHop3.5.0") {

@EventTarget
fun onMotion(event: MotionEvent) {
override fun onMotion() {
val thePlayer = mc.thePlayer ?: return

if (event.eventState == EventState.POST && isMoving && !thePlayer.isInWater && !thePlayer.isInLava && !mc.thePlayer.isSneaking) {
if (isMoving && !thePlayer.isInWater && !thePlayer.isInLava && !thePlayer.isSneaking) {
thePlayer.jumpMovementFactor += 0.00208f
if (thePlayer.fallDistance <= 1f) {
if (thePlayer.onGround) {
Expand Down

0 comments on commit a7a13d8

Please sign in to comment.