Skip to content

Commit

Permalink
removed shitcode
Browse files Browse the repository at this point in the history
  • Loading branch information
sqlerrorthing committed Dec 28, 2024
1 parent db4339f commit e6f6f51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import net.ccbluex.liquidbounce.event.events.GameTickEvent
import net.ccbluex.liquidbounce.event.handler
import net.ccbluex.liquidbounce.features.module.Category
import net.ccbluex.liquidbounce.features.module.ClientModule
import net.ccbluex.liquidbounce.utils.input.invoke

/**
* NoPush module
Expand Down Expand Up @@ -51,7 +50,7 @@ object ModuleNoPush : ClientModule("NoPush", Category.MOVEMENT) {
return@handler
}

if (mc.options.jumpKey() || mc.options.sneakKey()) {
if (mc.options.jumpKey.isPressed || mc.options.sneakKey.isPressed) {
return@handler
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

package net.ccbluex.liquidbounce.utils.input

import net.minecraft.client.option.KeyBinding
import net.minecraft.client.util.InputUtil
import net.minecraft.util.ActionResult

Expand Down Expand Up @@ -88,5 +87,3 @@ val keyList: Set<String>
.toSet()

fun ActionResult.shouldSwingHand() = this is ActionResult.Success && this.swingSource == ActionResult.SwingSource.CLIENT

operator fun KeyBinding.invoke(): Boolean = this.isPressed

0 comments on commit e6f6f51

Please sign in to comment.