From 75f9b171541e1816b31e56cdea254e4aef012150 Mon Sep 17 00:00:00 2001 From: Shadows_of_Fire Date: Mon, 25 Sep 2017 15:54:53 -0400 Subject: [PATCH] fix it for real this time --- .../mod/tile/TileEntityDirectionalBreaker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityDirectionalBreaker.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityDirectionalBreaker.java index 0c7db61de..511463c46 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityDirectionalBreaker.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityDirectionalBreaker.java @@ -81,10 +81,11 @@ public class TileEntityDirectionalBreaker extends TileEntityInventoryBase{ for(int i = 0; i < RANGE; i++){ BlockPos coordsBlock = this.pos.offset(sideToManipulate, i+1); - Block blockToBreak = this.world.getBlockState(coordsBlock).getBlock(); + IBlockState breakState = world.getBlockState(coordsBlock); + Block blockToBreak = breakState.getBlock(); if(blockToBreak != null && !this.world.isAirBlock(coordsBlock) && this.world.getBlockState(coordsBlock).getBlockHardness(this.world, coordsBlock) > -1.0F){ NonNullList drops = NonNullList.create(); - blockToBreak.getDrops(drops, world, coordsBlock, state, 0); + blockToBreak.getDrops(drops, world, coordsBlock, breakState, 0); float chance = WorldUtil.fireFakeHarvestEventsForDropChance(drops, this.world, coordsBlock); if(chance > 0 && this.world.rand.nextFloat() <= chance){