This commit is contained in:
Shadows_of_Fire 2017-09-24 14:32:21 -04:00
parent cbbc6253df
commit dcd8f5207b

View file

@ -84,7 +84,7 @@ public class TileEntityDirectionalBreaker extends TileEntityInventoryBase{
Block blockToBreak = this.world.getBlockState(coordsBlock).getBlock();
if(blockToBreak != null && !this.world.isAirBlock(coordsBlock) && this.world.getBlockState(coordsBlock).getBlockHardness(this.world, coordsBlock) > -1.0F){
NonNullList<ItemStack> drops = NonNullList.create();
blockToBreak.getDrops(drops, world, pos, state, 0);
blockToBreak.getDrops(drops, world, coordsBlock, state, 0);
float chance = WorldUtil.fireFakeHarvestEventsForDropChance(drops, this.world, coordsBlock);
if(chance > 0 && this.world.rand.nextFloat() <= chance){