diff --git a/src/main/java/tconstruct/library/tools/AbilityHelper.java b/src/main/java/tconstruct/library/tools/AbilityHelper.java index 31b65d99..f523f827 100644 --- a/src/main/java/tconstruct/library/tools/AbilityHelper.java +++ b/src/main/java/tconstruct/library/tools/AbilityHelper.java @@ -54,7 +54,7 @@ public class AbilityHelper { if (tags.getCompoundTag("InfiTool").hasKey("Unbreaking")) reinforced = tags.getCompoundTag("InfiTool").getInteger("Unbreaking"); - if (random.nextInt(10) < 10 - reinforced) { + if (random.nextInt(10) < 10 - reinforced && (double) block.getBlockHardness(world, x, y, z) != 0.0D) { damageTool(stack, 1, tags, player, false); }