Skip to content

Commit 01a095f

Browse files
committed
removed abort break packet usage entirely as it doesnt really do anything and is only causing tick stage complications
1 parent 9483f60 commit 01a095f

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ object BreakManager : RequestHandler<BreakRequest>(
464464
val breakInfo = BreakInfo(requestCtx, Primary, request)
465465
primaryBreak?.let { primaryInfo ->
466466
if (!breakInfo.breakConfig.doubleBreak || secondaryBreak != null) {
467-
if (!primaryInfo.updatedThisTick && tickStage in primaryInfo.breakConfig.breakStageMask) {
467+
if (!primaryInfo.updatedThisTick) {
468468
primaryInfo.cancelBreak()
469469
return@let
470470
} else return null
@@ -475,8 +475,6 @@ object BreakManager : RequestHandler<BreakRequest>(
475475
return secondaryBreak
476476
}
477477

478-
if (tickStage !in primaryInfo.breakConfig.breakStageMask) return null
479-
480478
primaryInfo.stopBreakPacket(world, interaction)
481479
primaryInfo.makeSecondary()
482480
return@let
@@ -560,7 +558,6 @@ object BreakManager : RequestHandler<BreakRequest>(
560558
runSafe {
561559
if (isRedundant || abandoned) return@runSafe
562560
if (isPrimary) {
563-
if (breaking) abortBreakPacket(world, interaction)
564561
nullify()
565562
setBreakingTextureStage(player, world, -1)
566563
request.onCancel?.invoke(context.blockPos)

0 commit comments

Comments
 (0)