Skip to content

Commit cc07803

Browse files
committed
rename breakBlock to destroyBlock
1 parent f3c1b32 commit cc07803

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)