Skip to content

Commit d2cc286

Browse files
committed
Fix usages
1 parent 9f9a7f2 commit d2cc286

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

common/src/main/kotlin/com/lambda/interaction/material/ContainerManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ object ContainerManager : Loadable {
5151
private var lastInteractedBlockEntity: BlockEntity? = null
5252

5353
init {
54-
listener<PlayerEvent.BlockInteract> {
54+
listener<PlayerEvent.Interact.Block> {
5555
lastInteractedBlockEntity = it.blockHitResult.blockPos.blockEntity(world)
5656
}
5757

common/src/main/kotlin/com/lambda/module/modules/combat/Criticals.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object Criticals : Module(
4747
}
4848

4949
init {
50-
listener<PlayerEvent.EntityAttack> {
50+
listener<PlayerEvent.Attack.Entity> {
5151
when (mode) {
5252
Mode.Grim -> {
5353
if (player.isOnGround) posPacket(0.00000001, rotation = player.rotation)

common/src/main/kotlin/com/lambda/module/modules/player/FastBreak.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ object FastBreak : Module(
104104
interaction.blockBreakingCooldown = interaction.blockBreakingCooldown.coerceAtMost(breakDelay)
105105
}
106106

107-
listener<PlayerEvent.BreakingProgress> {
107+
listener<PlayerEvent.Breaking.Update> {
108108
it.progress += world.getBlockState(it.pos)
109109
.calcBlockBreakingDelta(player, world, it.pos) * (1 - breakThreshold)
110110
}

common/src/main/kotlin/com/lambda/module/modules/player/PacketMine.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ object PacketMine : Module(
273273
private var doubleBreakReturnSlot = 0
274274

275275
init {
276-
listener<PlayerEvent.BreakingProgress> {
276+
listener<PlayerEvent.Breaking.Update> {
277277
swingingNextAttack = false
278278
}
279279

280-
listener<PlayerEvent.BlockAttack> {
280+
listener<PlayerEvent.Attack.Block> {
281281
it.cancel()
282282
if (swingOnManual) swingMainHand()
283283

common/src/main/kotlin/com/lambda/module/modules/render/Particles.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ object Particles : Module(
102102
}
103103
}
104104

105-
listener<PlayerEvent.EntityAttack> { event ->
105+
listener<PlayerEvent.Attack.Entity> { event ->
106106
spawnForEntity(event.entity)
107107
}
108108

0 commit comments

Comments
 (0)