Skip to content

Commit 84f1513

Browse files
committed
tick stage check in shouldSwap
1 parent 5d060fb commit 84f1513

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

src/main/kotlin/com/lambda/interaction/request/breaking/BreakInfo.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ data class BreakInfo(
103103
}
104104

105105
fun shouldSwap(player: ClientPlayerEntity, world: WorldView): Boolean {
106+
if (BreakManager.tickStage !in breakConfig.breakStageMask) return false
106107
val item = player.inventory.getStack(context.hotbarIndex)
107108
val breakDelta = context.cachedState.calcItemBlockBreakingDelta(player, world, context.blockPos, item)
108109
val breakProgress = breakDelta * ((breakingTicks + 1) - breakConfig.fudgeFactor).let {

0 commit comments

Comments
 (0)