change damage behavior to vanilla (#315)

This commit is contained in:
Nana-Sakura authored and GitHub committed 2026-08-18 16:32:33 +07:00
1 parent 37744c8385
commit 141a18165f
1 file changed
+1 -1
@@ -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);
}