Skip to content

Commit 22abb0f

Browse files
committed
include the hit pos in the positions for break radius > 0
1 parent e07c829 commit 22abb0f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ object PacketMine : Module(
9696
event.cancel()
9797
val pos = event.pos
9898
val positions = if (breakRadius > 0) {
99-
arrayListOf<BlockPos>().apply {
99+
arrayListOf(pos).apply {
100100
BlockPos.iterateOutwards(pos, breakRadius, breakRadius, breakRadius).forEach { blockPos ->
101101
if (blockPos distSq pos <= breakRadius * breakRadius && (!flatten || blockPos.y >= player.blockPos.y)) {
102102
add(blockPos.toImmutable())

0 commit comments

Comments
 (0)