diff --git a/src/main/kotlin/com/lambda/client/module/modules/player/Timer.kt b/src/main/kotlin/com/lambda/client/module/modules/player/Timer.kt index 616c578bc..d0ad54d3e 100644 --- a/src/main/kotlin/com/lambda/client/module/modules/player/Timer.kt +++ b/src/main/kotlin/com/lambda/client/module/modules/player/Timer.kt @@ -5,6 +5,8 @@ import com.lambda.client.manager.managers.TimerManager.modifyTimer import com.lambda.client.manager.managers.TimerManager.resetTimer import com.lambda.client.module.Category import com.lambda.client.module.Module +import com.lambda.client.module.modules.client.ClickGUI +import com.lambda.client.util.MovementUtils import net.minecraftforge.fml.common.gameevent.TickEvent object Timer : Module( @@ -13,6 +15,7 @@ object Timer : Module( category = Category.PLAYER, modulePriority = 500 ) { + private val onlyWhenInputting by setting("Only When Inputting", false) private val slow by setting("Slow Mode", false) private val tickNormal by setting("Tick N", 2.0f, 1f..10f, 0.1f, { !slow }) private val tickSlow by setting("Tick S", 8f, 1f..10f, 0.1f, { slow }) @@ -25,8 +28,15 @@ object Timer : Module( listener { if (it.phase != TickEvent.Phase.END) return@listener + if (ClickGUI.isEnabled) { + resetTimer() + return@listener + } + val multiplier = if (!slow) tickNormal else tickSlow / 10.0f - modifyTimer(50.0f / multiplier) + if (onlyWhenInputting) { + if (MovementUtils.isInputting) modifyTimer(50.0f / multiplier) + } else modifyTimer(50.0f / multiplier) } } } \ No newline at end of file