Skip to content

Commit c930981

Browse files
committed
packetmine onDisable
1 parent 0aa3806 commit c930981

File tree

1 file changed

+7
-0
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/player

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ object PacketMine : Module(
9191
listen<TickEvent.Input.Post> {
9292
if (!attackedThisTick) requestBreakManager(*breakingPositions.toList().toTypedArray())
9393
}
94+
95+
onDisable {
96+
breakingPositions[0] = null
97+
breakingPositions[1] = null
98+
reBreakPos = null
99+
attackedThisTick = false
100+
}
94101
}
95102

96103
private fun SafeContext.requestBreakManager(vararg requestPositions: BlockPos?) {

0 commit comments

Comments
 (0)