mirror of https://github.com/kami-blue/client
Merge pull request #833 from wnuke/master
This commit is contained in:
commit
12f1620f63
|
@ -38,6 +38,7 @@ class Aura : Module() {
|
|||
private val prefer = register(Settings.e<HitMode>("Prefer", HitMode.SWORD))
|
||||
private val autoTool = register(Settings.b("Auto Weapon", true))
|
||||
private val sync = register(Settings.b("TPS Sync", false))
|
||||
private val disableOnDeath = register(Settings.b("Disable On Death", false))
|
||||
private var waitCounter = 0
|
||||
|
||||
enum class HitMode {
|
||||
|
@ -49,7 +50,10 @@ class Aura : Module() {
|
|||
}
|
||||
|
||||
override fun onUpdate() {
|
||||
if (mc.player == null || mc.player.isDead) return
|
||||
if (mc.player == null || mc.player.isDead) {
|
||||
if (disableOnDeath.value) disable()
|
||||
return
|
||||
}
|
||||
|
||||
val autoWaitTick = 20.0f - LagCompensator.INSTANCE.tickRate
|
||||
val canAttack = mc.player.getCooledAttackStrength(if (sync.value) -autoWaitTick else 0.0f) >= 1
|
||||
|
|
|
@ -27,6 +27,9 @@ class PacketCancel : Module() {
|
|||
|
||||
@EventHandler
|
||||
private val sendListener = Listener(EventHook { event: PacketEvent.Send ->
|
||||
if (mc.player == null) {
|
||||
return@EventHook
|
||||
}
|
||||
if (all.value
|
||||
||
|
||||
packetInput.value && event.packet is CPacketInput
|
||||
|
|
Loading…
Reference in New Issue