From 71ec3d543f71d6e050842f439b05c589c755307e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 20 Jul 2015 20:52:25 +0200 Subject: [PATCH] Fixed a Bug with the drill being able to destroy blocks it shouldn't sometimes --- src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java index 02b68abd3..0f74e123d 100644 --- a/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java +++ b/src/main/java/ellpeck/actuallyadditions/items/ItemDrill.java @@ -340,7 +340,7 @@ public class ItemDrill extends ItemEnergy implements INameableItem{ Block block = world.getBlock(xPos, yPos, zPos); float hardness = block.getBlockHardness(world, xPos, yPos, zPos); int meta = world.getBlockMetadata(xPos, yPos, zPos); - if(hardness >= 0.0F && (!isExtra || (this.canHarvestBlock(block, stack) && !block.hasTileEntity(meta)))){ + if(hardness >= 0.0F && (this.canHarvestBlock(block, stack) && (!isExtra || !block.hasTileEntity(meta)))){ this.extractEnergy(stack, use, false); if(!world.isRemote){