Skip to content

Commit e194c92

Browse files
committed
1 tick faster primary breaks when server swap ticks is set to 0 (the default)
1 parent 660022b commit e194c92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/kotlin/com/lambda/interaction/managers/breaking

src/main/kotlin/com/lambda/interaction/managers/breaking/SwapInfo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ data class SwapInfo(
5353

5454
val swapAtEnd = run {
5555
val swapTickProgress = if (type == Primary)
56-
breakDelta * (breakTicks + breakConfig.serverSwapTicks - 1).coerceAtLeast(1)
56+
breakDelta * (breakTicks + (breakConfig.serverSwapTicks - 1).coerceAtLeast(0)).coerceAtLeast(1)
5757
else {
5858
val serverSwapTicks = hotbarConfig.swapPause.coerceAtLeast(3)
5959
breakDelta * (breakTicks + serverSwapTicks - 1).coerceAtLeast(1)

0 commit comments

Comments
 (0)