Fix drill being able to break bedrock, and slow it down slightly
This commit is contained in:
parent
8cf46ef273
commit
7bbb23c876
1 changed files with 4 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class ItemAdvancedDrill extends ItemDrill {
|
|||
|
||||
public ItemAdvancedDrill() {
|
||||
super(ToolMaterial.DIAMOND, "techreborn.advancedDrill", ConfigTechReborn.AdvancedDrillCharge,
|
||||
4.0F, 20F);
|
||||
4.0F, 10F);
|
||||
this.cost = 250;
|
||||
}
|
||||
|
||||
|
@ -117,6 +117,9 @@ public class ItemAdvancedDrill extends ItemDrill {
|
|||
}
|
||||
IBlockState blockState = world.getBlockState(pos);
|
||||
Block block = blockState.getBlock();
|
||||
if(block.getBlockHardness(blockState, world, pos) == -1.0F){
|
||||
return;
|
||||
}
|
||||
List<ItemStack> stuff = block.getDrops(world, pos, blockState, 0);
|
||||
List<ItemStack> dropList = new ArrayList<>();
|
||||
BlockEvent.HarvestDropsEvent event = new BlockEvent.HarvestDropsEvent(world, pos, blockState, 0, 1, dropList, (EntityPlayer) entityLiving, false);
|
||||
|
|
Loading…
Add table
Reference in a new issue