You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/main/kotlin/com/lambda/config/groups/BreakSettings.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ class BreakSettings(
29
29
vis: () ->Boolean = { true }
30
30
) : BreakConfig(priority) {
31
31
overrideval breakMode by c.setting("Break Mode", BreakMode.Packet) { vis() }
32
+
overrideval reBreak =ReBreakSettings(c, vis)
32
33
overrideval unsafeCancels by c.setting("Unsafe Cancels", true, "Allows cancelling block breaking even if the server might continue breaking sever side, potentially causing unexpected state changes") { vis() }
33
34
overrideval breakThreshold by c.setting("Break Threshold", 0.7f, 0.1f..1.0f, 0.02f, "The break amount at which the block is considered broken") { vis() }
34
35
overrideval doubleBreak by c.setting("Double Break", true, "Allows breaking two blocks at once") { vis() }
if (!matchesTargetState(event.pos, info.context.targetState, event.newState)) {
132
+
if (!isBroken(info.context.checkedState, event.newState)) {
133
+
this@BreakManager.warn("Break at ${event.pos.toShortString()} was rejected with ${event.newState} instead of ${info.context.checkedState.brokenState}")
0 commit comments