We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afee12a commit b05a988Copy full SHA for b05a988
1 file changed
common/src/main/kotlin/com/lambda/interaction/request/breaking/BreakManager.kt
@@ -561,6 +561,7 @@ object BreakManager : RequestHandler<BreakRequest>(
561
*/
562
private fun BreakInfo.cancelBreak() =
563
runSafe {
564
+ if (isRedundant || abandoned) return@runSafe
565
setBreakingTextureStage(player, world, -1)
566
if (isPrimary) {
567
if (breaking) abortBreakPacket(world, interaction)
@@ -657,9 +658,9 @@ object BreakManager : RequestHandler<BreakRequest>(
657
658
}
659
660
val blockState = blockState(ctx.blockPos)
- if (blockState.isEmpty) {
661
+ if (blockState.isEmpty || blockState.isAir) {
662
info.nullify()
- info.internalOnCancel()
663
+ if (!info.isRedundant) info.internalOnCancel()
664
return false
665
666
0 commit comments