Program: 8276
Project: 8276
Buggy source:
/** 
 * Tills in an AOE. Charge affects the AOE. Optional per-block EMC cost.
 */
protected void tillAOE(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,int meta,int emcCost){
  byte charge=this.getCharge(stack);
  boolean hasAction=false;
  boolean hasSoundPlayed=false;
  for (int i=x - charge; i <= x + charge; i++) {
    for (int j=z - charge; j <= z + charge; j++) {
      Block block=world.getBlock(i,y,j);
      Block blockAbove=world.getBlock(i,y + 1,j);
      if (!blockAbove.isOpaqueCube() && (block == Blocks.grass || block == Blocks.dirt)) {
        Block block1=Blocks.farmland;
        if (!hasSoundPlayed) {
          world.playSoundEffect((double)((float)i + 0.5F),(double)((float)y + 0.5F),(double)((float)j + 0.5F),block1.stepSound.getStepResourcePath(),(block1.stepSound.getVolume() + 1.0F) / 2.0F,block1.stepSound.getPitch() * 0.8F);
          hasSoundPlayed=true;
        }
        if (world.isRemote) {
          return;
        }
 else {
          if (MinecraftForge.EVENT_BUS.post(new UseHoeEvent(player,stack,world,i,y,j))) {
            continue;
          }
          if ((i == x && j == z) || consumeFuel(player,stack,emcCost,true)) {
            world.setBlock(i,y,j,block1);
            if ((blockAbove.getMaterial() == Material.plants || blockAbove.getMaterial() == Material.vine) && !(blockAbove instanceof ITileEntityProvider)) {
              world.func_147480_a(i,y + 1,j,true);
            }
            if (!hasAction) {
              hasAction=true;
            }
          }
        }
      }
    }
  }
  if (hasAction) {
    player.worldObj.playSoundAtEntity(player,"String_Node_Str",1.0F,1.0F);
  }
}

Fixed version (ground truth):
/** 
 * Tills in an AOE. Charge affects the AOE. Optional per-block EMC cost.
 */
protected void tillAOE(ItemStack stack,EntityPlayer player,World world,int x,int y,int z,int meta,int emcCost){
  byte charge=this.getCharge(stack);
  boolean hasAction=false;
  boolean hasSoundPlayed=false;
  for (int i=x - charge; i <= x + charge; i++) {
    for (int j=z - charge; j <= z + charge; j++) {
      Block block=world.getBlock(i,y,j);
      Block blockAbove=world.getBlock(i,y + 1,j);
      if (!blockAbove.isOpaqueCube() && (block == Blocks.grass || block == Blocks.dirt)) {
        if (!hasSoundPlayed) {
          world.playSoundEffect((double)((float)i + 0.5F),(double)((float)y + 0.5F),(double)((float)j + 0.5F),Blocks.farmland.stepSound.getStepResourcePath(),(Blocks.farmland.stepSound.getVolume() + 1.0F) / 2.0F,Blocks.farmland.stepSound.getPitch() * 0.8F);
          hasSoundPlayed=true;
        }
        if (world.isRemote) {
          return;
        }
 else {
          if (MinecraftForge.EVENT_BUS.post(new UseHoeEvent(player,stack,world,i,y,j))) {
            continue;
          }
          if ((i == x && j == z) || consumeFuel(player,stack,emcCost,true)) {
            PlayerHelper.checkedReplaceBlock(((EntityPlayerMP)player),i,y,j,Blocks.farmland,0);
            if ((blockAbove.getMaterial() == Material.plants || blockAbove.getMaterial() == Material.vine) && !(blockAbove instanceof ITileEntityProvider)) {
              if (PlayerHelper.hasBreakPermission(((EntityPlayerMP)player),i,y + 1,j)) {
                world.func_147480_a(i,y + 1,j,true);
              }
            }
            if (!hasAction) {
              hasAction=true;
            }
          }
        }
      }
    }
  }
  if (hasAction) {
    player.worldObj.playSoundAtEntity(player,"String_Node_Str",1.0F,1.0F);
  }
}