Merge branch 'development' into 1.8.9

This commit is contained in:
Ben Spiers committed 2016-04-27 23:47:00 +01:00
commit 5825c84fad
11 files changed
+46 -47

No files matched your search

@@ -113,13 +113,13 @@ public class BlockBounding extends Block
}
@Override
public float getBlockHardness(World world, BlockPos pos)
public float getPlayerRelativeBlockHardness(EntityPlayer player, World world, BlockPos pos)
{
try {
TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(pos);
return world.getBlockState(tileEntity.mainPos).getBlock().getBlockHardness(world, tileEntity.mainPos);
return world.getBlockState(tileEntity.mainPos).getBlock().getPlayerRelativeBlockHardness(player, world, tileEntity.mainPos);
} catch(Exception e) {
return blockHardness;
return super.getPlayerRelativeBlockHardness(player, world, pos);
}
}