mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fixes #928
This commit is contained in:
parent
cbbc6253df
commit
dcd8f5207b
1 changed files with 1 additions and 1 deletions
|
@ -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){
|
||||
|
|
Loading…
Reference in a new issue