mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-10-25 20:32:32 +00:00
change damage behavior to vanilla (#315)
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user