Skip to content

Commit 2dcb073

Browse files
committed
return true if there are no efficient tools for breaking the block
1 parent f28c193 commit 2dcb073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/lambda/interaction/material/StackSelection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class StackSelection {
165165
ItemUtils.tools.any { it.getMiningSpeed(it.defaultStack, blockState) > 1f }
166166
}
167167
if (hasEfficientTool) itemStack.item.getMiningSpeed(itemStack, blockState) > 1f
168-
else false
168+
else true
169169
}
170170

171171
fun isSuitableForBreaking(blockState: BlockState): (ItemStack) -> Boolean = { !blockState.isToolRequired || it.isSuitableFor(blockState) }

0 commit comments

Comments
 (0)