Skip to content

Commit fa9a42c

Browse files
committed
dont ignore break contexts that could potentially update current breaking infos
1 parent 69d3616 commit fa9a42c

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
@@ -353,7 +353,7 @@ object BreakManager : RequestHandler<BreakRequest>(
353353
* @return if the break context can be accepted.
354354
*/
355355
private fun SafeContext.canAccept(ctx: BreakContext, breakConfig: BreakConfig): Boolean {
356-
if (isPosBlocked(ctx.blockPos)) return false
356+
if (breakInfos.none { it?.context?.blockPos == ctx.blockPos } && isPosBlocked(ctx.blockPos)) return false
357357

358358
if (breakConfig.doubleBreak) {
359359
breakInfos

0 commit comments

Comments
 (0)