Skip to content

Commit e846ff8

Browse files
committed
fix misplaced vanilla isntant break check in break manager
1 parent f454c0d commit e846ff8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,7 @@ object BreakManager : Manager<BreakRequest>(
819819

820820
var packetCount = 1
821821
if (breakConfig.breakMode == BreakMode.Packet) packetCount++
822+
info.vanillaInstantBreakable = progress >= 1
822823
val requiresSecondStop = info.type == Secondary || (instantBreakable && !info.vanillaInstantBreakable)
823824
if (requiresSecondStop) packetCount++
824825

@@ -833,7 +834,6 @@ object BreakManager : Manager<BreakRequest>(
833834
}
834835

835836
if (instantBreakable) {
836-
info.vanillaInstantBreakable = progress >= 1
837837
onBlockBreak(info)
838838
val breakDelay = breakConfig.breakDelay
839839
if (!info.vanillaInstantBreakable) breakCooldown = if (breakDelay == 0) 0 else breakDelay + 1

0 commit comments

Comments
 (0)