File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
common/src/main/kotlin/com/lambda/interaction/request/breaking Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ object BreakManager : RequestHandler<BreakRequest>() {
110110 return @listen
111111 }
112112 if (breakBlock) {
113- breakBlock (info)
113+ destroyBlock (info)
114114 }
115115 currentRequest?.onBreak()
116116 }
@@ -261,12 +261,12 @@ object BreakManager : RequestHandler<BreakRequest>() {
261261 private fun SafeContext.onBlockBreak (info : BreakInfo ) {
262262 when (info.context.buildConfig.breakSettings.breakConfirmation) {
263263 BreakConfirmationMode .None -> {
264- breakBlock (info)
264+ destroyBlock (info)
265265 currentRequest?.onBreak()
266266 info.nullify()
267267 }
268268 BreakConfirmationMode .BreakThenAwait -> {
269- breakBlock (info)
269+ destroyBlock (info)
270270 pendingInteractions.add(info)
271271 }
272272 BreakConfirmationMode .AwaitThenBreak -> {
@@ -275,7 +275,7 @@ object BreakManager : RequestHandler<BreakRequest>() {
275275 }
276276 }
277277
278- private fun SafeContext.breakBlock (info : BreakInfo ): Boolean {
278+ private fun SafeContext.destroyBlock (info : BreakInfo ): Boolean {
279279 val ctx = info.context
280280
281281 if (player.isBlockBreakingRestricted(world, ctx.expectedPos, interaction.currentGameMode)) return false
You can’t perform that action at this time.
0 commit comments