@@ -24,7 +24,6 @@ import com.lambda.context.SafeContext
2424import com.lambda.event.events.PlayerPacketEvent
2525import com.lambda.event.events.TickEvent
2626import com.lambda.event.listener.SafeListener.Companion.listen
27- import com.lambda.interaction.managers.Request.Companion.submit
2827import com.lambda.interaction.managers.hotbar.HotbarRequest
2928import com.lambda.interaction.managers.rotating.RotationRequest
3029import com.lambda.interaction.managers.rotating.visibilty.lookAtEntity
@@ -103,7 +102,7 @@ object KillAura : Module(
103102 lastOnGround = event.onGround
104103 }
105104
106- listen<TickEvent .Pre > {
105+ listen<TickEvent .Input . Post > {
107106 target?.let { entity ->
108107 // Wait until the rotation has a hit result on the entity
109108 if (rotate) runSafeAutomated {
@@ -115,13 +114,13 @@ object KillAura : Module(
115114 }
116115
117116 if (swap) {
118- val selection = selectStack().sortByDescending {
119- damageMode.block(this , it)
120- }
117+ val selection = selectStack().sortByDescending {
118+ damageMode.block(this , it)
119+ }
121120
122121 selection.bestItemMatch(player.hotbar)?.let { bestStack ->
123122 val slotId = player.hotbar.indexOf(bestStack)
124- if (! submit( HotbarRequest (slotId, this @KillAura, nowOrNothing = false )).done) return @listen
123+ if (! HotbarRequest (slotId, this @KillAura, nowOrNothing = false ).submit( ).done) return @listen
125124 }
126125 }
127126
0 commit comments