Skip to content

Commit beff62f

Browse files
committed
fix non vanilla instant breakable blocks causing a minimum 1 tick break delay
1 parent d4ead6a commit beff62f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/lambda/interaction/managers/breaking/BreakManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,8 @@ object BreakManager : Manager<BreakRequest>(
799799
if (instantBreakable) {
800800
info.vanillaInstantBreakable = progress >= 1
801801
onBlockBreak(info)
802-
if (!info.vanillaInstantBreakable) breakCooldown = breakConfig.breakDelay + 1
802+
if (!info.vanillaInstantBreakable)
803+
breakCooldown = if (breakConfig.breakDelay == 0) 0 else breakConfig.breakDelay + 1
803804
} else {
804805
info.apply {
805806
breaking = true

0 commit comments

Comments
 (0)