mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fixed a Bug with the drill being able to destroy blocks it shouldn't sometimes
This commit is contained in:
parent
e184f72fb2
commit
71ec3d543f
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue