@Override
  public boolean onBlockActivated(
      World world,
      int x,
      int y,
      int z,
      EntityPlayer player,
      int par6,
      float par7,
      float par8,
      float par9) {

    ItemStack item = player.inventory.getCurrentItem();
    TileEntity tileentity = world.getTileEntity(x, y, z);
    OrderExchanger tile = null;
    if (tileentity != null && tileentity instanceof OrderExchanger) {
      tile = (OrderExchanger) tileentity;
    }
    if (tile != null && tile.canHandleMP(player)) {
      if (world.isRemote) {
        return true;
      } else {
        player.openGui(EcoMTCore.instance, EcoMTCore.instance.guiOrder, world, x, y, z);
        return true;
      }
    }

    return true;
  }
 @Override
 public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {
   if (world.isRemote) return;
   TileEntity tile = world.getTileEntity(x, y, z);
   int meta = world.getBlockMetadata(x, y, z);
   OrderExchanger safe = null;
   if (tile != null && tile instanceof OrderExchanger) {
     safe = (OrderExchanger) tile;
     if (safe.canHandleMP(player)) {
       world.playSoundEffect(
           x + 0.5D, y + 0.5D, z + 0.5D, "random.pop", 0.5F, this.rand.nextFloat() * 0.15F + 1.2F);
       world.setBlockToAir(x, y, z);
     }
   }
 }