Skip to content

Commit 43f85c4

Browse files
committed
enable min swap ticks 1 tick before the block is considered expected to be broken
1 parent 3166c0c commit 43f85c4

File tree

1 file changed

+1
-1
lines changed
  • common/src/main/kotlin/com/lambda/interaction/request/breaking

1 file changed

+1
-1
lines changed

common/src/main/kotlin/com/lambda/interaction/request/breaking/BreakManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ object BreakManager : RequestHandler<BreakRequest>(
228228
if (info.updatedProgressThisTick) return@forEach
229229
val minKeepTicks = if (info.isSecondary) {
230230
val breakDelta = info.context.checkedState.calcBlockBreakingDelta(player, world, info.context.expectedPos)
231-
val breakAmount = breakDelta * info.breakingTicks
231+
val breakAmount = breakDelta * (info.breakingTicks + 1)
232232
if (breakAmount >= 1.0f) 1 else 0
233233
} else 0
234234
if (!info.context.requestDependencies(info.request, minKeepTicks)) return@run

0 commit comments

Comments
 (0)