@@ -37,17 +37,18 @@ import com.lambda.interaction.request.breaking.BreakManager.activeRequest
3737import com.lambda.interaction.request.breaking.BreakManager.processRequest
3838import com.lambda.interaction.request.breaking.BreakType.Primary
3939import com.lambda.interaction.request.breaking.BreakType.ReBreak
40- import com.lambda.interaction.request.breaking.BrokenBlockHandler.brokenState
4140import com.lambda.interaction.request.breaking.BrokenBlockHandler.destroyBlock
42- import com.lambda.interaction.request.breaking.BrokenBlockHandler.isBroken
4341import com.lambda.interaction.request.breaking.BrokenBlockHandler.pendingBreaks
4442import com.lambda.interaction.request.breaking.BrokenBlockHandler.setPendingConfigs
4543import com.lambda.interaction.request.breaking.BrokenBlockHandler.startPending
4644import com.lambda.interaction.request.placing.PlaceManager
4745import com.lambda.interaction.request.rotation.RotationRequest
4846import com.lambda.threading.runSafe
4947import com.lambda.util.BlockUtils.blockState
48+ import com.lambda.util.BlockUtils.brokenState
5049import com.lambda.util.BlockUtils.calcItemBlockBreakingDelta
50+ import com.lambda.util.BlockUtils.isBroken
51+ import com.lambda.util.BlockUtils.isEmpty
5152import com.lambda.util.Communication.warn
5253import com.lambda.util.item.ItemUtils.block
5354import com.lambda.util.player.gamemode
@@ -309,7 +310,7 @@ object BreakManager : RequestHandler<BreakRequest>(
309310 }
310311 }
311312
312- return ! blockState(ctx.expectedPos).isAir
313+ return ! blockState(ctx.expectedPos).isEmpty
313314 }
314315
315316 /* *
@@ -553,7 +554,7 @@ object BreakManager : RequestHandler<BreakRequest>(
553554 }
554555
555556 val blockState = blockState(ctx.expectedPos)
556- if (blockState.isAir ) {
557+ if (blockState.isEmpty ) {
557558 info.nullify()
558559 info.internalOnCancel()
559560 return false
@@ -644,13 +645,13 @@ object BreakManager : RequestHandler<BreakRequest>(
644645 lastPosStarted = ctx.expectedPos
645646
646647 val blockState = blockState(ctx.expectedPos)
647- val notAir = ! blockState.isAir
648- if (notAir && info.breakingTicks == 0 ) {
648+ val notEmpty = ! blockState.isEmpty
649+ if (notEmpty && info.breakingTicks == 0 ) {
649650 blockState.onBlockBreakStart(world, ctx.expectedPos, player)
650651 }
651652
652653 val breakDelta = blockState.calcBlockBreakingDelta(player, world, ctx.expectedPos)
653- if (notAir && breakDelta >= info.getBreakThreshold()) {
654+ if (notEmpty && breakDelta >= info.getBreakThreshold()) {
654655 onBlockBreak(info)
655656 } else {
656657 info.apply {
0 commit comments