Skip to content

Commit 240533e

Browse files
committed
cancel on tick post if not updated
1 parent 93c5831 commit 240533e

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ object BreakManager : RequestHandler<BreakRequest>(
107107
breakInfos.forEach { info ->
108108
info?.apply {
109109
if (isRedundant) updateBreakProgress(this)
110+
else if (!updatedThisTick) {
111+
this.cancelBreak()
112+
return@apply
113+
}
110114
activeAge++
111115
updatedThisTick = false
112116
updatedProgressThisTick = false

0 commit comments

Comments
 (0)